mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 04:46:43 +00:00
42 lines
747 B
Nix
42 lines
747 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
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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 ];
|
|
};
|
|
}
|