From 88334fc9e8b78bd2a256f01772e2d91a1808cd0e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 11 Jan 2025 13:08:28 +0100 Subject: [PATCH] python312Packages.twentemilieu: migrate to pytest-cov-stub --- .../python-modules/twentemilieu/default.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/twentemilieu/default.nix b/pkgs/development/python-modules/twentemilieu/default.nix index f91d96c0658e..4f0c5322a73f 100644 --- a/pkgs/development/python-modules/twentemilieu/default.nix +++ b/pkgs/development/python-modules/twentemilieu/default.nix @@ -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 ];