nixpkgs/pkgs/development/python-modules/pydicom/default.nix
Jonathan Ringer e897fc34b4 pythonPackages.pydicom: disable python2, abandoned
```
  Processing ./pydicom-2.0.0-py2-none-any.whl
  ERROR: Package 'pydicom' requires a different Python: 2.7.18 not in '>=3.5'
  ```
2020-06-29 14:25:22 -07:00

31 lines
632 B
Nix

{ stdenv
, buildPythonPackage
, fetchPypi
, isPy27
, pytest
, pytestrunner
, numpy
, pillow
}:
buildPythonPackage rec {
version = "2.0.0";
pname = "pydicom";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "594c91f715c415ef439f498351ae68fb770c776fc5aa72f3c87eb500dc2a7470";
};
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 ];
};
}