1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 makefun, 6 decopatch, 7 pythonOlder, 8 pytest, 9 setuptools-scm, 10}: 11 12buildPythonPackage rec { 13 pname = "pytest-cases"; 14 version = "3.8.6"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.6"; 18 19 src = fetchPypi { 20 pname = "pytest_cases"; 21 inherit version; 22 hash = "sha256-XCTgqwy2+OgCpGm3llkGozPTuruHRYbrxW9+LL4afEQ="; 23 }; 24 25 build-system = [ setuptools-scm ]; 26 27 buildInputs = [ pytest ]; 28 29 dependencies = [ 30 decopatch 31 makefun 32 ]; 33 34 # Tests have dependencies (pytest-harvest, pytest-steps) which 35 # are not available in Nixpkgs. Most of the packages (decopatch, 36 # makefun, pytest-*) have circular dependencies. 37 doCheck = false; 38 39 pythonImportsCheck = [ "pytest_cases" ]; 40 41 meta = with lib; { 42 description = "Separate test code from test cases in pytest"; 43 homepage = "https://github.com/smarie/python-pytest-cases"; 44 changelog = "https://github.com/smarie/python-pytest-cases/releases/tag/${version}"; 45 license = licenses.bsd3; 46 maintainers = with maintainers; [ fab ]; 47 }; 48}