python312Packages.twentemilieu: migrate to pytest-cov-stub
This commit is contained in:
@@ -1,14 +1,15 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
pythonOlder,
|
||||
fetchFromGitHub,
|
||||
aiohttp,
|
||||
yarl,
|
||||
aresponses,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
poetry-core,
|
||||
pytest-asyncio,
|
||||
pytest-cov-stub,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
yarl,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -26,8 +27,8 @@ buildPythonPackage rec {
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# Upstream is creating GitHub releases without version
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace "--cov" "" \
|
||||
--replace '"0.0.0"' '"${version}"'
|
||||
'';
|
||||
|
||||
@@ -41,6 +42,7 @@ buildPythonPackage rec {
|
||||
nativeCheckInputs = [
|
||||
aresponses
|
||||
pytest-asyncio
|
||||
pytest-cov-stub
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user