Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, pytestCheckHook 6, numpy 7, pydicom 8}: 9 10buildPythonPackage rec { 11 pname = "dicom-numpy"; 12 version = "0.6.3"; 13 disabled = pythonOlder "3.6"; 14 15 src = fetchFromGitHub { 16 owner = "innolitics"; 17 repo = pname; 18 rev = "v${version}"; 19 hash = "sha256-QIPuSFaWgHmcTddZ8H9kgzLYuwGUzy/FVsi/ttSUskA="; 20 }; 21 22 propagatedBuildInputs = [ 23 numpy 24 pydicom 25 ]; 26 27 nativeCheckInputs = [ 28 pytestCheckHook 29 ]; 30 31 pythonImportsCheck = [ 32 "dicom_numpy" 33 ]; 34 35 meta = with lib; { 36 description = "Read DICOM files into Numpy arrays"; 37 homepage = "https://github.com/innolitics/dicom-numpy"; 38 license = licenses.mit; 39 maintainers = with maintainers; [ bcdarwin ]; 40 }; 41}