2023-11-16 04:20:00 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, cython
|
|
|
|
, fetchFromGitHub
|
|
|
|
, keyutils
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "keyutils";
|
|
|
|
version = "0.6";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# github version comes bundled with tests
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sassoftware";
|
|
|
|
repo = "python-keyutils";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0pfqfr5xqgsqkxzrmj8xl2glyl4nbq0irs0k6ik7iy3gd3mxf5g1";
|
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py --replace '"pytest-runner"' ""
|
|
|
|
'';
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
preBuild = ''
|
|
|
|
cython keyutils/_keyutils.pyx
|
|
|
|
'';
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
rm -rf keyutils
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ keyutils ];
|
2023-11-16 04:20:00 +00:00
|
|
|
nativeBuildInputs = [ cython ];
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A set of python bindings for keyutils";
|
|
|
|
homepage = "https://github.com/sassoftware/python-keyutils";
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = with lib.maintainers; [ primeos ];
|
|
|
|
};
|
|
|
|
}
|