mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-30 12:14:55 +00:00
65 lines
1.3 KiB
Nix
65 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
|
|
# build-system
|
|
pbr,
|
|
setuptools,
|
|
|
|
# dependencies
|
|
aiohttp,
|
|
|
|
# tests
|
|
ddt,
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "aioresponses";
|
|
version = "0.7.9";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit (finalAttrs) pname version;
|
|
hash = "sha256-Hc+iiTj8AG8Eapg4OnwHrBgL56SSwe1Vf1zXsIBTV9M=";
|
|
};
|
|
|
|
patches = [
|
|
# https://github.com/pnuckowski/aioresponses/issues/289
|
|
# https://github.com/pnuckowski/aioresponses/pull/292
|
|
./aiohttp-3.14-compat.patch
|
|
];
|
|
|
|
build-system = [
|
|
pbr
|
|
setuptools
|
|
];
|
|
|
|
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"
|
|
"test_pass_through_with_origin_params"
|
|
"test_pass_through_unmatched_requests"
|
|
];
|
|
|
|
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 = [ ];
|
|
};
|
|
})
|