1{ lib, buildPythonPackage, fetchFromGitHub, keyutils, pytest-runner, pytest }: 2 3buildPythonPackage rec { 4 pname = "keyutils"; 5 version = "0.6"; 6 7 # github version comes bundled with tests 8 src = fetchFromGitHub { 9 owner = "sassoftware"; 10 repo = "python-keyutils"; 11 rev = version; 12 sha256 = "0pfqfr5xqgsqkxzrmj8xl2glyl4nbq0irs0k6ik7iy3gd3mxf5g1"; 13 }; 14 15 postPatch = '' 16 substituteInPlace setup.py --replace '"pytest-runner"' "" 17 ''; 18 19 buildInputs = [ keyutils ]; 20 checkInputs = [ pytest pytest-runner ]; 21 22 meta = { 23 description = "A set of python bindings for keyutils"; 24 homepage = "https://github.com/sassoftware/python-keyutils"; 25 license = lib.licenses.asl20; 26 maintainers = with lib.maintainers; [ primeos ]; 27 }; 28}