Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 52 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253{ lib, buildPythonPackage, fetchPypi, makefun, decopatch, pythonOlder, pytest, setuptools-scm}:
buildPythonPackage rec { pname = "pytest-cases"; version = "3.8.2"; pyproject = true;
disabled = pythonOlder "3.6";
src = fetchPypi { inherit pname version; hash = "sha256-JM7AEoyCL1G19AL6zgnnBJlU2WddsspnX84e9/j3Seg="; };
nativeBuildInputs = [ setuptools-scm ];
buildInputs = [ pytest ];
propagatedBuildInputs = [ decopatch makefun ];
# Tests have dependencies (pytest-harvest, pytest-steps) which # are not available in Nixpkgs. Most of the packages (decopatch, # makefun, pytest-*) have circular dependencies. doCheck = false;
pythonImportsCheck = [ "pytest_cases" ];
meta = with lib; { description = "Separate test code from test cases in pytest"; homepage = "https://github.com/smarie/python-pytest-cases"; changelog = "https://github.com/smarie/python-pytest-cases/releases/tag/${version}"; license = licenses.bsd3; maintainers = with maintainers; [ fab ]; };}