1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 setuptools-scm,
7 pytestCheckHook,
8 pytest,
9 pythonOlder,
10}:
11
12buildPythonPackage rec {
13 pname = "pytest-test-utils";
14 version = "0.1.0";
15 pyproject = true;
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchFromGitHub {
20 owner = "iterative";
21 repo = "pytest-test-utils";
22 tag = version;
23 hash = "sha256-19oNAFff++7ntMdlnMXYc2w5I+EzGwWJh+rB1IjNZGk=";
24 };
25
26 build-system = [
27 setuptools
28 setuptools-scm
29 ];
30
31 buildInputs = [ pytest ];
32
33 nativeCheckInputs = [ pytestCheckHook ];
34
35 pythonImportsCheck = [ "pytest_test_utils" ];
36
37 meta = with lib; {
38 description = "Pytest utilities for tests";
39 homepage = "https://github.com/iterative/pytest-test-utils";
40 changelog = "https://github.com/iterative/pytest-test-utils/releases/tag/${version}";
41 license = licenses.asl20;
42 maintainers = with maintainers; [ fab ];
43 };
44}