1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytest,
6 pytestCheckHook,
7 pythonOlder,
8 setuptools-scm,
9 setuptools,
10 six,
11 voluptuous,
12}:
13
14buildPythonPackage rec {
15 pname = "pytest-voluptuous";
16 version = "1.2.0";
17 pyproject = true;
18
19 disabled = pythonOlder "3.7";
20
21 src = fetchFromGitHub {
22 owner = "F-Secure";
23 repo = "pytest-voluptuous";
24 tag = version;
25 hash = "sha256-xdj4qCSSJQI9Rb1WyUYrAg1I5wQ5o6IJyIjJAafP/LY=";
26 };
27
28 build-system = [
29 setuptools
30 setuptools-scm
31 ];
32
33 buildInputs = [ pytest ];
34
35 dependencies = [ voluptuous ];
36
37 nativeCheckInputs = [
38 pytestCheckHook
39 six
40 ];
41
42 pythonImportsCheck = [ "pytest_voluptuous" ];
43
44 pytestFlagsArray = [ "tests/test_plugin.py" ];
45
46 meta = with lib; {
47 description = "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}