depot/third_party/nixpkgs/pkgs/development/python-modules/dicom-numpy/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

41 lines
741 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pytestCheckHook
, numpy
, pydicom
}:
buildPythonPackage rec {
pname = "dicom-numpy";
version = "0.6.3";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "innolitics";
repo = pname;
rev = "v${version}";
hash = "sha256-QIPuSFaWgHmcTddZ8H9kgzLYuwGUzy/FVsi/ttSUskA=";
};
propagatedBuildInputs = [
numpy
pydicom
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"dicom_numpy"
];
meta = with lib; {
description = "Read DICOM files into Numpy arrays";
homepage = "https://github.com/innolitics/dicom-numpy";
license = licenses.mit;
maintainers = with maintainers; [ bcdarwin ];
};
}