diff --git a/pkgs/development/python-modules/pydicom/default.nix b/pkgs/development/python-modules/pydicom/default.nix index 30b4bd4fa30e..48824469b230 100644 --- a/pkgs/development/python-modules/pydicom/default.nix +++ b/pkgs/development/python-modules/pydicom/default.nix @@ -2,10 +2,11 @@ , stdenv , buildPythonPackage , fetchFromGitHub -, pythonOlder -, pytestCheckHook +, flit-core , numpy , pillow +, pytestCheckHook +, pythonOlder , setuptools }: @@ -32,15 +33,19 @@ let in buildPythonPackage { inherit pname version src; - disabled = pythonOlder "3.6"; + pyproject = true; - format = "setuptools"; + disabled = pythonOlder "3.10"; patches = [ # backport of https://github.com/pydicom/pydicom/commit/2513a20cc41743a42bdb86f4cbb4873899b7823c ./pillow-10.1.0-compat.patch ]; + nativeBuildInputs = [ + flit-core + ]; + propagatedBuildInputs = [ numpy pillow @@ -78,6 +83,7 @@ buildPythonPackage { meta = with lib; { description = "Python package for working with DICOM files"; homepage = "https://pydicom.github.io"; + changelog = "https://github.com/pydicom/pydicom/releases/tag/v${version}"; license = licenses.mit; maintainers = with maintainers; [ bcdarwin ]; };