at master 921 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 cython, 5 fetchFromGitHub, 6 keyutils, 7 pytestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "keyutils"; 12 version = "0.6"; 13 format = "setuptools"; 14 15 # github version comes bundled with tests 16 src = fetchFromGitHub { 17 owner = "sassoftware"; 18 repo = "python-keyutils"; 19 rev = version; 20 sha256 = "0pfqfr5xqgsqkxzrmj8xl2glyl4nbq0irs0k6ik7iy3gd3mxf5g1"; 21 }; 22 23 postPatch = '' 24 substituteInPlace setup.py --replace '"pytest-runner"' "" 25 ''; 26 27 preBuild = '' 28 cython keyutils/_keyutils.pyx 29 ''; 30 31 preCheck = '' 32 rm -rf keyutils 33 ''; 34 35 buildInputs = [ keyutils ]; 36 nativeBuildInputs = [ cython ]; 37 nativeCheckInputs = [ pytestCheckHook ]; 38 39 meta = { 40 description = "Set of python bindings for keyutils"; 41 homepage = "https://github.com/sassoftware/python-keyutils"; 42 license = lib.licenses.asl20; 43 maintainers = with lib.maintainers; [ ]; 44 }; 45}