Files
nixpkgs/pkgs/development/python-modules/aioresponses/default.nix
T
2025-03-13 18:00:11 +01:00

58 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
# build-system
pbr,
setuptools,
# dependencies
aiohttp,
# tests
ddt,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "aioresponses";
version = "0.7.8";
pyproject = true;
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
hash = "sha256-uGHN/l3FjzuK+sewppc9XXsstgjdD2JT0WuO6Or23xE=";
};
nativeBuildInputs = [
pbr
setuptools
];
propagatedBuildInputs = [ aiohttp ];
pythonImportsCheck = [ "aioresponses" ];
nativeCheckInputs = [
ddt
pytestCheckHook
];
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";
license = lib.licenses.mit;
};
}