summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/plum-py/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/plum-py/default.nix')
-rw-r--r--pkgs/development/python-modules/plum-py/default.nix23
1 files changed, 20 insertions, 3 deletions
diff --git a/pkgs/development/python-modules/plum-py/default.nix b/pkgs/development/python-modules/plum-py/default.nix
index 701a36a36853..d6020cabc99f 100644
--- a/pkgs/development/python-modules/plum-py/default.nix
+++ b/pkgs/development/python-modules/plum-py/default.nix
@@ -1,4 +1,10 @@
-{ lib, buildPythonPackage, fetchFromGitLab, isPy3k, pytest, baseline }:
+{ lib
+, buildPythonPackage
+, fetchFromGitLab
+, isPy3k
+, pytestCheckHook
+, baseline
+}:
buildPythonPackage rec {
pname = "plum-py";
@@ -12,10 +18,21 @@ buildPythonPackage rec {
hash = "sha256-jCZUNT1HpSr0khHsjnxEzN2LCzcDV6W27PjVkwFJHUg=";
};
+ postPatch = ''
+ # Drop broken version specifier
+ sed -i "/python_requires =/d" setup.cfg
+ '';
+
pythonImportsCheck = [ "plum" ];
- nativeCheckInputs = [ pytest baseline ];
- checkPhase = "pytest tests";
+ nativeCheckInputs = [
+ baseline
+ pytestCheckHook
+ ];
+
+ pytestFlagsArray = [
+ "tests"
+ ];
meta = with lib; {
description = "Classes and utilities for packing/unpacking bytes";