diff --git a/pkgs/development/python-modules/aioresponses/default.nix b/pkgs/development/python-modules/aioresponses/default.nix index 823b89c95138..f3874c0ee971 100644 --- a/pkgs/development/python-modules/aioresponses/default.nix +++ b/pkgs/development/python-modules/aioresponses/default.nix @@ -12,16 +12,17 @@ # tests ddt, + pytest-asyncio, pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "aioresponses"; version = "0.7.9"; pyproject = true; src = fetchPypi { - inherit pname version; + inherit (finalAttrs) pname version; hash = "sha256-Hc+iiTj8AG8Eapg4OnwHrBgL56SSwe1Vf1zXsIBTV9M="; }; @@ -31,26 +32,21 @@ buildPythonPackage rec { ./aiohttp-3.14-compat.patch ]; - postPatch = '' - # https://github.com/pnuckowski/aioresponses/pull/278 - substituteInPlace aioresponses/core.py \ - --replace-fail asyncio.iscoroutinefunction inspect.iscoroutinefunction - ''; - - nativeBuildInputs = [ + build-system = [ pbr setuptools ]; - propagatedBuildInputs = [ aiohttp ]; - - pythonImportsCheck = [ "aioresponses" ]; + dependencies = [ aiohttp ]; nativeCheckInputs = [ ddt + pytest-asyncio pytestCheckHook ]; + pythonImportsCheck = [ "aioresponses" ]; + disabledTests = [ # Skip tests which make requests to httpbin.org "test_address_as_instance_of_url_combined_with_pass_through" @@ -61,6 +57,8 @@ buildPythonPackage rec { meta = { description = "Helper to mock/fake web requests in python aiohttp package"; homepage = "https://github.com/pnuckowski/aioresponses"; + changelog = "https://github.com/pnuckowski/aioresponses/releases/tag/${finalAttrs.version}"; license = lib.licenses.mit; + maintainers = [ ]; }; -} +})