From 046730ebdb664bcba35e78e697585e9763f35c6c Mon Sep 17 00:00:00 2001 From: Ben Darwin Date: Thu, 16 Jan 2020 13:58:51 -0500 Subject: [PATCH] pythonPackages.pydicom: init at 1.3.0 --- .../python-modules/pydicom/default.nix | 28 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/development/python-modules/pydicom/default.nix diff --git a/pkgs/development/python-modules/pydicom/default.nix b/pkgs/development/python-modules/pydicom/default.nix new file mode 100644 index 000000000000..d281193be231 --- /dev/null +++ b/pkgs/development/python-modules/pydicom/default.nix @@ -0,0 +1,28 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, pytest +, pytestrunner +, numpy +, pillow +}: + +buildPythonPackage rec { + version = "1.3.0"; + pname = "pydicom"; + + src = fetchPypi { + inherit pname version; + sha256 = "1j11lsykqbnw9d6gzgj6kfn6lawvm5d9azd9palj3l1xhj0hlnsq"; + }; + + propagatedBuildInputs = [ numpy pillow ]; + checkInputs = [ pytest pytestrunner ]; + + meta = with stdenv.lib; { + homepage = https://pydicom.github.io; + description = "Pure-Python package for working with DICOM files"; + license = licenses.mit; + maintainers = with maintainers; [ bcdarwin ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 9d0724db801c..4905d4d8c680 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1040,6 +1040,8 @@ in { pydbus = callPackage ../development/python-modules/pydbus { }; + pydicom = callPackage ../development/python-modules/pydicom { }; + pydocstyle = if isPy27 then callPackage ../development/python-modules/pydocstyle/2.nix { }