2021-05-20 23:08:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, makefun
|
|
|
|
, decopatch
|
|
|
|
, pythonOlder
|
|
|
|
, pytest
|
|
|
|
, setuptools-scm
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-cases";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "3.8.2";
|
2024-01-13 08:15:51 +00:00
|
|
|
pyproject = true;
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-01-25 14:12:00 +00:00
|
|
|
hash = "sha256-JM7AEoyCL1G19AL6zgnnBJlU2WddsspnX84e9/j3Seg=";
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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,
|
2023-05-24 13:37:59 +00:00
|
|
|
# makefun, pytest-*) have circular dependencies.
|
2021-05-20 23:08:51 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"pytest_cases"
|
|
|
|
];
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Separate test code from test cases in pytest";
|
|
|
|
homepage = "https://github.com/smarie/python-pytest-cases";
|
2023-03-04 12:14:45 +00:00
|
|
|
changelog = "https://github.com/smarie/python-pytest-cases/releases/tag/${version}";
|
2021-05-20 23:08:51 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|