1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # build-system
7 setuptools,
8
9 # dependencies
10 pytest,
11
12 # tests
13 pytest7CheckHook,
14}:
15
16let
17 pname = "pytest-describe";
18 version = "2.2.0";
19in
20buildPythonPackage {
21 inherit pname version;
22 pyproject = true;
23
24 src = fetchFromGitHub {
25 owner = "pytest-dev";
26 repo = "pytest-describe";
27 tag = version;
28 hash = "sha256-ih0XkYOtB+gwUsgo1oSti2460P3gq3tR+UsyRlzMjLE=";
29 };
30
31 build-system = [ setuptools ];
32
33 buildInputs = [ pytest ];
34
35 # test_fixture breaks with pytest 8.4
36 nativeCheckInputs = [ pytest7CheckHook ];
37
38 meta = with lib; {
39 description = "Describe-style plugin for the pytest framework";
40 homepage = "https://github.com/pytest-dev/pytest-describe";
41 changelog = "https://github.com/pytest-dev/pytest-describe/releases/tag/${version}";
42 license = licenses.mit;
43 maintainers = with maintainers; [ hexa ];
44 };
45}