about summary refs log tree commit diff
path: root/pkgs/development/python-modules/keyutils
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2021-11-12 12:23:04 +0000
committerAlyssa Ross <hi@alyssa.is>2021-11-21 13:51:23 +0000
commit858f0e8ed9ac9b00d03feccb5fb564bf6b75e27a (patch)
treefea2281ee6fdf42672279fa42e7d7dd4c76fabcf /pkgs/development/python-modules/keyutils
parent82ccc7f17b5f70c36568918c386992fa4706faff (diff)
python3.pkgs.keyutils: fix cross
When cross-compiling, tests aren't run, and check inputs aren't
available.  But pytest-runner was a setup requirement, so keyutils
would fail to build without it, even though we weren't running the
tests.  To fix that, drop the pytest-runner setup requirement.
Diffstat (limited to 'pkgs/development/python-modules/keyutils')
-rw-r--r--pkgs/development/python-modules/keyutils/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/keyutils/default.nix b/pkgs/development/python-modules/keyutils/default.nix
index 3d1575d8c37f6..21eeb11d136cc 100644
--- a/pkgs/development/python-modules/keyutils/default.nix
+++ b/pkgs/development/python-modules/keyutils/default.nix
@@ -12,6 +12,10 @@ buildPythonPackage rec {
     sha256 = "0pfqfr5xqgsqkxzrmj8xl2glyl4nbq0irs0k6ik7iy3gd3mxf5g1";
   };
 
+  postPatch = ''
+    substituteInPlace setup.py --replace '"pytest-runner"' ""
+  '';
+
   buildInputs = [ keyutils ];
   checkInputs = [ pytest pytest-runner ];