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

python311Packages.keyutils: fix build
This commit is contained in:
Robert Schütz 2023-10-26 20:28:06 -07:00 committed by GitHub
commit c585eaf8d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,10 @@
{ lib, buildPythonPackage, fetchFromGitHub, keyutils, pytest-runner, pytest }:
{ lib
, buildPythonPackage
, cython
, fetchFromGitHub
, keyutils
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "keyutils";
@ -16,8 +22,19 @@ buildPythonPackage rec {
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";