diff --git a/pkgs/development/python-modules/clifford/default.nix b/pkgs/development/python-modules/clifford/default.nix index 84859729c5b1..6a590af483a7 100644 --- a/pkgs/development/python-modules/clifford/default.nix +++ b/pkgs/development/python-modules/clifford/default.nix @@ -7,6 +7,7 @@ , numba , numpy , pytestCheckHook +, setuptools , scipy , sparse }: @@ -14,7 +15,7 @@ buildPythonPackage rec { pname = "clifford"; version = "1.4.0"; - format = "setuptools"; + pyproject = true; disabled = pythonOlder "3.5"; @@ -23,7 +24,11 @@ buildPythonPackage rec { hash = "sha256-eVE8FrD0YHoRreY9CrNb8v4v4KrG83ZU0oFz+V+p+Q0="; }; - propagatedBuildInputs = [ + build-system = [ + setuptools + ]; + + dependencies = [ h5py numba numpy @@ -62,7 +67,11 @@ buildPythonPackage rec { meta = with lib; { description = "Numerical Geometric Algebra Module"; homepage = "https://clifford.readthedocs.io"; + changelog = "https://github.com/pygae/clifford/releases/tag/v${version}"; license = licenses.bsd3; maintainers = with maintainers; [ ]; + # Broken with numba >= 0.54 + # see https://github.com/pygae/clifford/issues/430 + broken = versionAtLeast numba.version "0.58"; }; } diff --git a/pkgs/development/python-modules/sparse/default.nix b/pkgs/development/python-modules/sparse/default.nix index 1ecf340e975e..0c81e3435098 100644 --- a/pkgs/development/python-modules/sparse/default.nix +++ b/pkgs/development/python-modules/sparse/default.nix @@ -6,22 +6,34 @@ , numpy , pytestCheckHook , pythonOlder +, setuptools +, setuptools-scm , scipy }: buildPythonPackage rec { pname = "sparse"; version = "0.15.1"; - format = "setuptools"; + pyproject = true; - disabled = pythonOlder "3.6"; + disabled = pythonOlder "3.8"; src = fetchPypi { inherit pname version; hash = "sha256-lzrcuIqNuOPYBHlTMx4m0/ZKVlf5tGprhZxHZjw+75k="; }; - propagatedBuildInputs = [ + postPatch = '' + substituteInPlace pytest.ini \ + --replace-fail "--cov-report term-missing --cov-report html --cov-report=xml --cov-report=term --cov sparse --cov-config .coveragerc --junitxml=junit/test-results.xml" "" + ''; + + build-system = [ + setuptools + setuptools-scm + ]; + + dependencies = [ numba numpy scipy @@ -36,6 +48,11 @@ buildPythonPackage rec { "sparse" ]; + pytestFlagsArray = [ + "-W" + "ignore::pytest.PytestRemovedIn8Warning" + ]; + meta = with lib; { description = "Sparse n-dimensional arrays computations"; homepage = "https://sparse.pydata.org/";