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