1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, setuptools
5, pytestCheckHook
6, pytest
7, pythonOlder
8}:
9
10buildPythonPackage rec {
11 pname = "pytest-test-utils";
12 version = "0.0.8";
13 format = "pyproject";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "iterative";
19 repo = pname;
20 rev = "refs/tags/${version}";
21 hash = "sha256-5gB+hnJR2+NQd/n7RGrX1bzfKt8Np7IbWw61SZgNVJY=";
22 };
23
24 nativeBuildInputs = [
25 setuptools
26 ];
27
28 buildInputs = [
29 pytest
30 ];
31
32 checkInputs = [
33 pytestCheckHook
34 ];
35
36 pythonImportsCheck = [
37 "pytest_test_utils"
38 ];
39
40 meta = with lib; {
41 description = "Pytest utilities for tests";
42 homepage = "https://github.com/iterative/pytest-test-utils";
43 license = licenses.asl20;
44 maintainers = with maintainers; [ fab ];
45 };
46}