1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pythonOlder, 6 7 # build-system 8 setuptools, 9 setuptools-scm, 10 11 # dependencies 12 attrs, 13 14 # tests 15 pytestCheckHook, 16}: 17 18buildPythonPackage rec { 19 pname = "pytest-subtests"; 20 version = "0.14.2"; 21 format = "pyproject"; 22 23 disabled = pythonOlder "3.7"; 24 25 src = fetchPypi { 26 pname = "pytest_subtests"; 27 inherit version; 28 hash = "sha256-cVSoZl/VKO5wp20AIWpE0TncPJyDUhoPd597CtT4AN4="; 29 }; 30 31 nativeBuildInputs = [ 32 setuptools 33 setuptools-scm 34 ]; 35 36 propagatedBuildInputs = [ attrs ]; 37 38 nativeCheckInputs = [ pytestCheckHook ]; 39 40 pythonImportsCheck = [ "pytest_subtests" ]; 41 42 meta = with lib; { 43 description = "Pytest plugin for unittest subTest() support and subtests fixture"; 44 homepage = "https://github.com/pytest-dev/pytest-subtests"; 45 license = licenses.mit; 46 maintainers = with maintainers; [ fab ]; 47 }; 48}