1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 hatch-vcs,
6 hatchling,
7 pytest,
8 pytestCheckHook,
9 pythonOlder,
10}:
11
12buildPythonPackage rec {
13 pname = "pytest-metadata";
14 version = "3.1.1";
15 format = "pyproject";
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchPypi {
20 pname = "pytest_metadata";
21 inherit version;
22 hash = "sha256-0qKbA1X7wD8WiqltQf+IsaO0SjsCrL5JGAHJigSAF8g=";
23 };
24
25 nativeBuildInputs = [
26 hatchling
27 hatch-vcs
28 ];
29
30 buildInputs = [ pytest ];
31
32 nativeCheckInputs = [ pytestCheckHook ];
33
34 meta = with lib; {
35 description = "Plugin for accessing test session metadata";
36 homepage = "https://github.com/pytest-dev/pytest-metadata";
37 license = licenses.mpl20;
38 maintainers = with maintainers; [ mpoquet ];
39 };
40}