Merge pull request #225676 from ChrisPattison/galois-v0.3.3-fix
python310Packages.galois: fix broken dep constraints
This commit is contained in:
commit
5af11cc753
@ -2,6 +2,7 @@
|
|||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, setuptools-scm
|
, setuptools-scm
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
|
, pythonRelaxDepsHook
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pytest-xdist
|
, pytest-xdist
|
||||||
@ -28,6 +29,7 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
setuptools-scm
|
setuptools-scm
|
||||||
|
pythonRelaxDepsHook
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
@ -41,19 +43,15 @@ buildPythonPackage rec {
|
|||||||
pytest-xdist
|
pytest-xdist
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
pythonRelaxDeps = [ "numpy" "numba" ];
|
||||||
substituteInPlace pyproject.toml \
|
|
||||||
--replace "numpy >= 1.18.4, < 1.24" "numpy >= 1.18.4" \
|
|
||||||
--replace "numba >= 0.53, < 0.57" "numba >= 0.53" \
|
|
||||||
'';
|
|
||||||
|
|
||||||
pythonImportsCheck = [ "galois" ];
|
pythonImportsCheck = [ "galois" ];
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
description = "A Python 3 package that extends NumPy arrays to operate over finite fields";
|
description = "Python package that extends NumPy arrays to operate over finite fields";
|
||||||
homepage = "https://github.com/mhostetter/galois";
|
homepage = "https://github.com/mhostetter/galois";
|
||||||
downloadPage = "https://github.com/mhostetter/galois/releases";
|
downloadPage = "https://github.com/mhostetter/galois/releases/tag/v${version}";
|
||||||
license = lib.licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with lib.maintainers; [ chrispattison ];
|
maintainers = with maintainers; [ chrispattison ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user