python3Packages.aioresponses: 0.7.8 -> 0.7.9

This commit is contained in:
Martin Weinelt
2026-07-15 03:11:41 +02:00
parent 8fc3e41843
commit d5ca3483a1
@@ -12,17 +12,18 @@
# tests
ddt,
pytest-asyncio,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "aioresponses";
version = "0.7.8";
version = "0.7.9";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-uGHN/l3FjzuK+sewppc9XXsstgjdD2JT0WuO6Or23xE=";
hash = "sha256-Hc+iiTj8AG8Eapg4OnwHrBgL56SSwe1Vf1zXsIBTV9M=";
};
patches = [
@@ -31,23 +32,18 @@ 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 ];
dependencies = [ aiohttp ];
pythonImportsCheck = [ "aioresponses" ];
nativeCheckInputs = [
ddt
pytest-asyncio
pytestCheckHook
];
@@ -59,6 +55,7 @@ buildPythonPackage rec {
];
meta = {
changelog = "https://github.com/pnuckowski/aioresponses/releases/tag/${version}";
description = "Helper to mock/fake web requests in python aiohttp package";
homepage = "https://github.com/pnuckowski/aioresponses";
license = lib.licenses.mit;