From db25cc63f17b7e6287bc30344274fdda03e058a7 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 29 Apr 2022 04:17:59 +0000 Subject: [PATCH 1/2] python310Packages.pynrrd: 0.4.2 -> 0.4.3 --- pkgs/development/python-modules/pynrrd/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/pynrrd/default.nix b/pkgs/development/python-modules/pynrrd/default.nix index 641cd6bd1280..612e5075807b 100644 --- a/pkgs/development/python-modules/pynrrd/default.nix +++ b/pkgs/development/python-modules/pynrrd/default.nix @@ -6,13 +6,13 @@ buildPythonPackage rec { pname = "pynrrd"; - version = "0.4.2"; + version = "0.4.3"; src = fetchFromGitHub { owner = "mhe"; repo = pname; - rev = "v${version}"; - sha256 = "1wn3ara3i19fi1y9a5j4imyczpa6dkkzd5djggxg4kkl1ff9awrj"; + rev = "refs/tags/v${version}"; + sha256 = "sha256-4UM2NAKWfsjxAoLQCFSPVKG5GukxqppywqvLM0V/dIs="; }; propagatedBuildInputs = [ numpy ]; From 20bd079b35e3a20a55cb9b60432a9526f8a60256 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 29 Apr 2022 08:50:31 +0200 Subject: [PATCH 2/2] python310Packages.pynrrd: disable on older Python releases -add pythonImportsCheck --- pkgs/development/python-modules/pynrrd/default.nix | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pynrrd/default.nix b/pkgs/development/python-modules/pynrrd/default.nix index 612e5075807b..91cff70bae35 100644 --- a/pkgs/development/python-modules/pynrrd/default.nix +++ b/pkgs/development/python-modules/pynrrd/default.nix @@ -2,20 +2,30 @@ , buildPythonPackage , fetchFromGitHub , numpy +, pythonOlder }: buildPythonPackage rec { pname = "pynrrd"; version = "0.4.3"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "mhe"; repo = pname; rev = "refs/tags/v${version}"; - sha256 = "sha256-4UM2NAKWfsjxAoLQCFSPVKG5GukxqppywqvLM0V/dIs="; + hash = "sha256-4UM2NAKWfsjxAoLQCFSPVKG5GukxqppywqvLM0V/dIs="; }; - propagatedBuildInputs = [ numpy ]; + propagatedBuildInputs = [ + numpy + ]; + + pythonImportsCheck = [ + "nrrd" + ]; meta = with lib; { homepage = "https://github.com/mhe/pynrrd";