diff options
Diffstat (limited to 'pkgs/development/python-modules/cmsdials/default.nix')
-rw-r--r-- | pkgs/development/python-modules/cmsdials/default.nix | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/cmsdials/default.nix b/pkgs/development/python-modules/cmsdials/default.nix new file mode 100644 index 000000000000..25788393515e --- /dev/null +++ b/pkgs/development/python-modules/cmsdials/default.nix @@ -0,0 +1,53 @@ +{ + 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 ]; + }; +} |