Skip to content

Commit 88334fc

Browse files
committed
python312Packages.twentemilieu: migrate to pytest-cov-stub
1 parent 3431088 commit 88334fc

File tree

1 file changed

+7
-5
lines changed
  • pkgs/development/python-modules/twentemilieu

1 file changed

+7
-5
lines changed

pkgs/development/python-modules/twentemilieu/default.nix

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
{
22
lib,
3-
buildPythonPackage,
4-
pythonOlder,
5-
fetchFromGitHub,
63
aiohttp,
7-
yarl,
84
aresponses,
5+
buildPythonPackage,
6+
fetchFromGitHub,
97
poetry-core,
108
pytest-asyncio,
9+
pytest-cov-stub,
1110
pytestCheckHook,
11+
pythonOlder,
12+
yarl,
1213
}:
1314

1415
buildPythonPackage rec {
@@ -26,8 +27,8 @@ buildPythonPackage rec {
2627
};
2728

2829
postPatch = ''
30+
# Upstream is creating GitHub releases without version
2931
substituteInPlace pyproject.toml \
30-
--replace "--cov" "" \
3132
--replace '"0.0.0"' '"${version}"'
3233
'';
3334

@@ -41,6 +42,7 @@ buildPythonPackage rec {
4142
nativeCheckInputs = [
4243
aresponses
4344
pytest-asyncio
45+
pytest-cov-stub
4446
pytestCheckHook
4547
];
4648

0 commit comments

Comments
 (0)