1{
2 lib,
3 buildPythonPackage,
4 pythonOlder,
5 fetchFromGitHub,
6 setuptools,
7 setuptools-scm,
8 pytest,
9 pytestCheckHook,
10 pytest-describe,
11}:
12
13buildPythonPackage rec {
14 pname = "pytest-spec";
15 version = "5.1.0";
16 pyproject = true;
17
18 disabled = pythonOlder "3.9";
19
20 src = fetchFromGitHub {
21 owner = "pchomik";
22 repo = "pytest-spec";
23 tag = version;
24 hash = "sha256-uzl7T2h7s2YjC0nd1FbubRca8oTU4kEe4cEpIGPLaHA=";
25 };
26
27 build-system = [
28 setuptools
29 setuptools-scm
30 ];
31
32 buildInputs = [ pytest ];
33
34 nativeCheckInputs = [
35 pytestCheckHook
36 pytest-describe
37 ];
38
39 pythonImportsCheck = [ "pytest_spec" ];
40
41 meta = {
42 changelog = "https://github.com/pchomik/pytest-spec/blob/${src.tag}/CHANGES.txt";
43 description = "Pytest plugin to display test execution output like a SPECIFICATION";
44 homepage = "https://github.com/pchomik/pytest-spec";
45 license = lib.licenses.gpl2Plus;
46 maintainers = with lib.maintainers; [ tomasajt ];
47 };
48}