Unverified Commit c585eaf8 authored by Robert Schütz's avatar Robert Schütz Committed by GitHub
Browse files

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

python311Packages.keyutils: fix build
parents 65f93084 03170e3f
Loading
Loading
Loading
Loading
+19 −2
Original line number Diff line number Diff line
{ 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";