From 6cc0b5f0a64fa83c162f4aaf900ec39e418f9e76 Mon Sep 17 00:00:00 2001 From: Chris Pattison Date: Mon, 10 Apr 2023 20:37:06 -0700 Subject: [PATCH 1/2] python310Packages.galois: fix broken dep constraints --- pkgs/development/python-modules/galois/default.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/galois/default.nix b/pkgs/development/python-modules/galois/default.nix index 1e3b5e0fd915..bb22de1597b3 100644 --- a/pkgs/development/python-modules/galois/default.nix +++ b/pkgs/development/python-modules/galois/default.nix @@ -2,6 +2,7 @@ , buildPythonPackage , setuptools-scm , pythonOlder +, pythonRelaxDepsHook , fetchFromGitHub , pytestCheckHook , pytest-xdist @@ -28,6 +29,7 @@ buildPythonPackage rec { nativeBuildInputs = [ setuptools-scm + pythonRelaxDepsHook ]; propagatedBuildInputs = [ @@ -41,11 +43,7 @@ buildPythonPackage rec { pytest-xdist ]; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace "numpy >= 1.18.4, < 1.24" "numpy >= 1.18.4" \ - --replace "numba >= 0.53, < 0.57" "numba >= 0.53" \ - ''; + pythonRelaxDeps = [ "numpy" "numba" ]; pythonImportsCheck = [ "galois" ]; From b63db43781eb744c8fa87ccbfbbb9fe7b8bc20f4 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 11 Apr 2023 08:19:15 +0200 Subject: [PATCH 2/2] python310Packages.galois: update meta --- pkgs/development/python-modules/galois/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/galois/default.nix b/pkgs/development/python-modules/galois/default.nix index bb22de1597b3..1f5ef06ea1c4 100644 --- a/pkgs/development/python-modules/galois/default.nix +++ b/pkgs/development/python-modules/galois/default.nix @@ -47,11 +47,11 @@ buildPythonPackage rec { pythonImportsCheck = [ "galois" ]; - meta = { - description = "A Python 3 package that extends NumPy arrays to operate over finite fields"; + meta = with lib; { + description = "Python package that extends NumPy arrays to operate over finite fields"; homepage = "https://github.com/mhostetter/galois"; - downloadPage = "https://github.com/mhostetter/galois/releases"; - license = lib.licenses.mit; - maintainers = with lib.maintainers; [ chrispattison ]; + downloadPage = "https://github.com/mhostetter/galois/releases/tag/v${version}"; + license = licenses.mit; + maintainers = with maintainers; [ chrispattison ]; }; }