Merge pull request #305147 from leona-ya/pythonpackabes-aiojobs

python3Packages.aiojobs: fix broken tests
This commit is contained in:
Martin Weinelt 2024-04-20 11:57:13 +02:00 committed by GitHub
commit bc6154300f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 0 deletions

View File

@ -3,6 +3,7 @@
, async-timeout
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, pytest-aiohttp
, pytestCheckHook
, pythonOlder
@ -23,6 +24,13 @@ buildPythonPackage rec {
hash = "sha256-LwFXb/SHP6bbqPg1tqYwE03FKHf4Mv1PPOxnPdESH0I=";
};
patches = [
(fetchpatch {
url = "https://github.com/aio-libs/aiojobs/commit/1b88049841397b01f88aee7d92174ac5a15217c1.patch";
hash = "sha256-b38Ipa29T6bEVsPe04ZO3WCcs6+0fOQDCJM+w8K1bVY=";
})
];
postPatch = ''
substituteInPlace pytest.ini \
--replace "--cov=aiojobs/ --cov=tests/ --cov-report term" ""