python311Packages.celery-singleton: migrate to pytest-cov-stub

This commit is contained in:
Peder Bergebakken Sundt
2024-08-06 23:15:18 +02:00
parent 526d7537bb
commit 5d77379776

View File

@@ -8,6 +8,7 @@
redis,
pytestCheckHook,
pytest-celery,
pytest-cov-stub,
}:
buildPythonPackage rec {
@@ -22,13 +23,6 @@ buildPythonPackage rec {
hash = "sha256-fHlakxxjYIADELZdxIj6rvsZ/+1QfnKvAg3w5cdzvDc=";
};
postPatch = ''
# Disable coverage reporting in tests
substituteInPlace setup.cfg \
--replace "--cov" "" \
--replace "--no-cov-on-fail" ""
'';
patches = [
# chore(poetry): use poetry-core
# https://github.com/steinitzu/celery-singleton/pull/54
@@ -49,6 +43,7 @@ buildPythonPackage rec {
checkInputs = [
pytestCheckHook
pytest-celery
pytest-cov-stub
];
pytestFlagsArray = [ "tests" ];