fixup! python3Packages.aioresponses: 0.7.8 -> 0.7.9

This commit is contained in:
Fabian Affolter
2026-08-25 16:53:53 +02:00
parent 287e40969e
commit 944f2aedef

View File

@@ -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 = [ ];
};
}
})