Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytest, 6 pytestCheckHook, 7 pythonOlder, 8 six, 9 voluptuous, 10}: 11 12buildPythonPackage rec { 13 pname = "pytest-voluptuous"; 14 version = "1.2.0"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "F-Secure"; 21 repo = "pytest-voluptuous"; 22 rev = "refs/tags/${version}"; 23 hash = "sha256-xdj4qCSSJQI9Rb1WyUYrAg1I5wQ5o6IJyIjJAafP/LY="; 24 }; 25 26 buildInputs = [ pytest ]; 27 28 propagatedBuildInputs = [ voluptuous ]; 29 30 nativeCheckInputs = [ 31 pytestCheckHook 32 six 33 ]; 34 35 pythonImportsCheck = [ "pytest_voluptuous" ]; 36 37 pytestFlagsArray = [ "tests/test_plugin.py" ]; 38 39 meta = with lib; { 40 description = "Pytest plugin for asserting data against voluptuous schema"; 41 homepage = "https://github.com/F-Secure/pytest-voluptuous"; 42 changelog = "https://github.com/F-Secure/pytest-voluptuous/blob/${version}/CHANGELOG.rst"; 43 license = licenses.asl20; 44 maintainers = with maintainers; [ fab ]; 45 }; 46}