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