1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytestCheckHook
5, pythonOlder
6, setuptools-scm
7}:
8
9buildPythonPackage rec {
10 pname = "pytest-subtests";
11 version = "0.10.0";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-2ZYaZ8F5HoweMtznpw7R5U87HmQQh/IJTy03CHq3+xc=";
19 };
20
21 nativeBuildInputs = [
22 setuptools-scm
23 ];
24
25 nativeCheckInputs = [
26 pytestCheckHook
27 ];
28
29 pythonImportsCheck = [
30 "pytest_subtests"
31 ];
32
33 meta = with lib; {
34 description = "Pytest plugin for unittest subTest() support and subtests fixture";
35 homepage = "https://github.com/pytest-dev/pytest-subtests";
36 license = licenses.mit;
37 maintainers = with maintainers; [ fab ];
38 };
39}