nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 41 lines 826 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 numpy, 7 typing-extensions, 8 pytestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "pynrrd"; 13 version = "1.1.3"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "mhe"; 18 repo = "pynrrd"; 19 tag = "v${version}"; 20 hash = "sha256-qu3s3XswJCUchqYfYMuqIzI4sfeXrttvXSEW9/GSENA="; 21 }; 22 23 build-system = [ setuptools ]; 24 25 dependencies = [ 26 numpy 27 typing-extensions 28 ]; 29 30 nativeCheckInputs = [ pytestCheckHook ]; 31 32 pythonImportsCheck = [ "nrrd" ]; 33 34 meta = { 35 homepage = "https://github.com/mhe/pynrrd"; 36 description = "Simple pure-Python reader for NRRD files"; 37 changelog = "https://github.com/mhe/pynrrd/releases/tag/v${version}"; 38 license = lib.licenses.mit; 39 maintainers = with lib.maintainers; [ bcdarwin ]; 40 }; 41}