From 8f12f5e1d34a6632e08b82ef8fe72959bd586993 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 22 Jan 2023 11:49:37 +0100 Subject: [PATCH] python311Packages.aio-geojson-client: remove asynctest --- .../python-modules/aio-geojson-client/default.nix | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/aio-geojson-client/default.nix b/pkgs/development/python-modules/aio-geojson-client/default.nix index a7796367b8b0..a23b41b66396 100644 --- a/pkgs/development/python-modules/aio-geojson-client/default.nix +++ b/pkgs/development/python-modules/aio-geojson-client/default.nix @@ -1,11 +1,12 @@ { lib , aiohttp , aresponses -, asynctest , buildPythonPackage , fetchFromGitHub +, fetchpatch , geojson , haversine +, mock , pytest-asyncio , pytestCheckHook , pythonOlder @@ -25,6 +26,15 @@ buildPythonPackage rec { hash = "sha256-5GiQgtbvYeleovFbXO2vlr2XPsDIWZiElM64O+urMcY="; }; + patches = [ + # Remove asynctest, https://github.com/exxamalte/python-aio-geojson-client/pull/35 + (fetchpatch { + name = "remove-asynctest.patch"; + url = "https://github.com/exxamalte/python-aio-geojson-client/commit/bf617d9898a99b026b43b28bd87bb6479f518c0a.patch"; + hash = "sha256-uomH3LCaklfGURDs8SsnvNyHkubbe+5dleLEjW+I+M4="; + }) + ]; + propagatedBuildInputs = [ aiohttp geojson @@ -33,7 +43,7 @@ buildPythonPackage rec { checkInputs = [ aresponses - asynctest + mock pytest-asyncio pytestCheckHook ];