Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 pythonOlder, 5 fetchPypi, 6 setuptools, 7 pyyaml, 8 more-itertools, 9 pytestCheckHook, 10}: 11 12buildPythonPackage rec { 13 pname = "tap.py"; 14 version = "3.1"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.6"; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-PAzUUhKtWiWzVEWWTiUX76AAoRihv8NDfa6CiJLq8eE="; 22 }; 23 24 build-system = [ 25 setuptools 26 ]; 27 28 optional-dependencies = { 29 yaml = [ 30 pyyaml 31 more-itertools 32 ]; 33 }; 34 35 nativeCheckInputs = [ pytestCheckHook ]; 36 37 pythonImportsCheck = [ "tap" ]; 38 39 meta = with lib; { 40 description = "Set of tools for working with the Test Anything Protocol (TAP) in Python"; 41 homepage = "https://github.com/python-tap/tappy"; 42 changelog = "https://tappy.readthedocs.io/en/latest/releases.html"; 43 mainProgram = "tappy"; 44 license = licenses.bsd2; 45 maintainers = with maintainers; [ sfrijters ]; 46 }; 47}