mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
54 lines
1.0 KiB
Nix
54 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
poetry-core,
|
|
pydantic,
|
|
requests,
|
|
typing-extensions,
|
|
pandas,
|
|
tqdm,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "cmsdials";
|
|
version = "1.4.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cms-DQM";
|
|
repo = "dials-py";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-/5XgNPtjJgJEOaqvq7Z7XCXh2n+DbZqFbqnZddxxFpc=";
|
|
};
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [
|
|
pydantic
|
|
requests
|
|
typing-extensions
|
|
];
|
|
|
|
optional-dependencies = {
|
|
pandas = [ pandas ];
|
|
tqdm = [ tqdm ];
|
|
};
|
|
|
|
pythonRelaxDeps = [
|
|
# pydantic = "<2, >=1"pydantic = "<2, >=1"
|
|
"pydantic"
|
|
# typing-extensions = "<4.6.0, >=3.6.6"
|
|
"typing-extensions"
|
|
];
|
|
|
|
pythonImportsCheck = [ "cmsdials" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python API client interface to CMS DIALS service";
|
|
homepage = "https://github.com/cms-DQM/dials-py";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ ShamrockLee ];
|
|
};
|
|
}
|