Merge pull request #263500 from vancluever/vancluever-python311Packages.keyutils-fix-build

python311Packages.keyutils: fix build

Changed files
+19 -2
pkgs
development
python-modules
keyutils
+19 -2
pkgs/development/python-modules/keyutils/default.nix
···
-
{ lib, buildPythonPackage, fetchFromGitHub, keyutils, pytest-runner, pytest }:
+
{ lib
+
, buildPythonPackage
+
, cython
+
, fetchFromGitHub
+
, keyutils
+
, pytestCheckHook
+
}:
buildPythonPackage rec {
pname = "keyutils";
···
substituteInPlace setup.py --replace '"pytest-runner"' ""
'';
+
preBuild = ''
+
cython keyutils/_keyutils.pyx
+
'';
+
+
preCheck = ''
+
rm -rf keyutils
+
'';
+
buildInputs = [ keyutils ];
-
nativeCheckInputs = [ pytest pytest-runner ];
+
nativeBuildInputs = [ cython ];
+
nativeCheckInputs = [
+
pytestCheckHook
+
];
meta = {
description = "A set of python bindings for keyutils";