02dab4ab5c
Long term we should move everything over to `pyproject = true`, but in the mean time we can work towards deprecating the implicit `format` paremeter. cc https://github.com/NixOS/nixpkgs/issues/253154 cc @mweinelt @figsoda
46 lines
929 B
Nix
46 lines
929 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, cython
|
|
, fetchFromGitHub
|
|
, keyutils
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "keyutils";
|
|
version = "0.6";
|
|
format = "setuptools";
|
|
|
|
# github version comes bundled with tests
|
|
src = fetchFromGitHub {
|
|
owner = "sassoftware";
|
|
repo = "python-keyutils";
|
|
rev = version;
|
|
sha256 = "0pfqfr5xqgsqkxzrmj8xl2glyl4nbq0irs0k6ik7iy3gd3mxf5g1";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py --replace '"pytest-runner"' ""
|
|
'';
|
|
|
|
preBuild = ''
|
|
cython keyutils/_keyutils.pyx
|
|
'';
|
|
|
|
preCheck = ''
|
|
rm -rf keyutils
|
|
'';
|
|
|
|
buildInputs = [ keyutils ];
|
|
nativeBuildInputs = [ cython ];
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|