1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, numpy 5, pythonOlder 6}: 7 8buildPythonPackage rec { 9 pname = "pynrrd"; 10 version = "0.4.3"; 11 format = "setuptools"; 12 13 disabled = pythonOlder "3.7"; 14 15 src = fetchFromGitHub { 16 owner = "mhe"; 17 repo = pname; 18 rev = "refs/tags/v${version}"; 19 hash = "sha256-4UM2NAKWfsjxAoLQCFSPVKG5GukxqppywqvLM0V/dIs="; 20 }; 21 22 propagatedBuildInputs = [ 23 numpy 24 ]; 25 26 pythonImportsCheck = [ 27 "nrrd" 28 ]; 29 30 meta = with lib; { 31 homepage = "https://github.com/mhe/pynrrd"; 32 description = "Simple pure-Python reader for NRRD files"; 33 license = licenses.mit; 34 maintainers = with maintainers; [ bcdarwin ]; 35 }; 36}