forked from mirrors/nixpkgs
Merge pull request #263500 from vancluever/vancluever-python311Packages.keyutils-fix-build
python311Packages.keyutils: fix build
This commit is contained in:
commit
c585eaf8d8
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue