about summary refs log tree commit diff
path: root/pkgs/development/python-modules/devito/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/devito/default.nix')
-rw-r--r--pkgs/development/python-modules/devito/default.nix23
1 files changed, 12 insertions, 11 deletions
diff --git a/pkgs/development/python-modules/devito/default.nix b/pkgs/development/python-modules/devito/default.nix
index 9b9eeb9cc89c5..95ec86ff5eb36 100644
--- a/pkgs/development/python-modules/devito/default.nix
+++ b/pkgs/development/python-modules/devito/default.nix
@@ -3,6 +3,7 @@
   stdenv,
   anytree,
   buildPythonPackage,
+  setuptools,
   cached-property,
   cgen,
   click,
@@ -19,15 +20,14 @@
   pytest-xdist,
   pytestCheckHook,
   pythonOlder,
-  pythonRelaxDepsHook,
   scipy,
   sympy,
 }:
 
 buildPythonPackage rec {
   pname = "devito";
-  version = "4.8.8";
-  format = "setuptools";
+  version = "4.8.11";
+  pyproject = true;
 
   disabled = pythonOlder "3.8";
 
@@ -35,19 +35,20 @@ buildPythonPackage rec {
     owner = "devitocodes";
     repo = "devito";
     rev = "refs/tags/v${version}";
-    hash = "sha256-j+If/yYj85c8GpSo/fq5MfxVHQlo/4+Qh+Bn1N/9nd4=";
+    hash = "sha256-c8/b2dRwfH4naSVRaRon6/mBDva7RSDmi/TJUJp26g0=";
   };
 
-  pythonRemoveDeps = [
-    "codecov"
-    "flake8"
-    "pytest-runner"
-    "pytest-cov"
-  ];
+  # packaging.metadata.InvalidMetadata: 'python_version_3.8_' is invalid for 'provides-extra'
+  postPatch = ''
+    substituteInPlace requirements-testing.txt \
+      --replace-fail 'pooch; python_version >= "3.8"' "pooch"
+  '';
+
+  pythonRemoveDeps = [ "pip" ];
 
   pythonRelaxDeps = true;
 
-  nativeBuildInputs = [ pythonRelaxDepsHook ];
+  build-system = [ setuptools ];
 
   dependencies = [
     anytree