From 59cb94fb28181b9d974ba0fd9812cbb87c144e9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Maret?= Date: Fri, 8 Apr 2022 17:18:32 +0200 Subject: [PATCH 1/2] python3Packages.astropy-extension-helpers: 0.1 -> 1.0.0 --- .../python-modules/astropy-extension-helpers/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/astropy-extension-helpers/default.nix b/pkgs/development/python-modules/astropy-extension-helpers/default.nix index 8e5a2fda3301..7bf838860b38 100644 --- a/pkgs/development/python-modules/astropy-extension-helpers/default.nix +++ b/pkgs/development/python-modules/astropy-extension-helpers/default.nix @@ -8,12 +8,12 @@ buildPythonPackage rec { pname = "extension-helpers"; - version = "0.1"; + version = "1.0.0"; format = "pyproject"; src = fetchPypi { inherit pname version; - sha256 = "10iqjzmya2h4sk765dlm1pbqypwlqyh8rw59a5m9i63d3klnz2mc"; + sha256 = "ca1bfac67c79cf4a7a0c09286ce2a24eec31bf17715818d0726318dd0e5050e6"; }; nativeBuildInputs = [ From c67fa73bf9bb4aaea660118c7cd79b1dc9841905 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 9 Apr 2022 21:26:06 +0200 Subject: [PATCH 2/2] python3Packages.astropy-extension-helpers: disable on older Python releases --- .../astropy-extension-helpers/default.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/astropy-extension-helpers/default.nix b/pkgs/development/python-modules/astropy-extension-helpers/default.nix index 7bf838860b38..90162d431caf 100644 --- a/pkgs/development/python-modules/astropy-extension-helpers/default.nix +++ b/pkgs/development/python-modules/astropy-extension-helpers/default.nix @@ -3,6 +3,7 @@ , fetchPypi , findutils , pytestCheckHook +, pythonOlder , setuptools-scm }: @@ -11,6 +12,8 @@ buildPythonPackage rec { version = "1.0.0"; format = "pyproject"; + disabled = pythonOlder "3.6"; + src = fetchPypi { inherit pname version; sha256 = "ca1bfac67c79cf4a7a0c09286ce2a24eec31bf17715818d0726318dd0e5050e6"; @@ -22,7 +25,10 @@ buildPythonPackage rec { patches = [ ./permissions.patch ]; - checkInputs = [ findutils pytestCheckHook ]; + checkInputs = [ + findutils + pytestCheckHook + ]; # avoid import mismatch errors, as conftest.py is copied to build dir pytestFlagsArray = [ @@ -37,6 +43,6 @@ buildPythonPackage rec { description = "Utilities for building and installing packages in the Astropy ecosystem"; homepage = "https://github.com/astropy/extension-helpers"; license = licenses.bsd3; - maintainers = [ maintainers.rmcgibbo ]; + maintainers = with maintainers; [ rmcgibbo ]; }; }