nixpkgs/pkgs/development/python-modules/cmsdials/default.nix
2024-11-08 04:29:42 +00:00

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 ];
};
}