Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778{ aiohttp, buildPythonPackage, ddt, fetchFromGitHub, hatchling, httpx, lib, multidict, pytest-asyncio, pytestCheckHook, requests, yarl,}:
buildPythonPackage (finalAttrs: { pname = "aiointercept"; version = "1.0.0"; pyproject = true;
src = fetchFromGitHub { owner = "Polandia94"; repo = "aiointercept"; tag = "v.${finalAttrs.version}"; hash = "sha256-yDCWoMIWj0H9Zmac0WYZTzM28ooBC9dEKAKKkb4LSDs="; };
build-system = [ hatchling ];
dependencies = [ aiohttp multidict yarl ];
pythonImportsCheck = [ "aiointercept" "aiointercept.pytest_plugin" ];
nativeCheckInputs = [ ddt httpx pytest-asyncio pytestCheckHook requests ];
disabledTests = [ # different indentation "test_assert_called_with_json" "test_assert_called_with_data_bytes" "test_assert_called_with_data_dict" "test_assert_called_with_strict_headers_fail" # connect to DNS servers "test_address_as_instance_of_url_combined_with_pass_through" "test_pass_through_unmatched_requests" "test_pass_through_with_origin_params" "test_passthrough_host_is_allowed" "test_passthrough_https_explicit" "test_passthrough_unmatched_allows_real_requests" "test_passthrough_unmatched_https_no_patterns" "test_passthrough_unmatched_https_with_patterns" "test_passthrough_unmatched_url_handler_unknown_path_proxied" "test_passthrough_unmatched_with_pattern_proxies_unmatched" "test_real_request_then_mock_same_host_ignores_stale_dns" "test_shared_resolve_no_active_instances_uses_real_resolver" ];
meta = { changelog = "https://github.com/Polandia94/aiointercept/blob/${finalAttrs.src.tag}/CHANGELOG.md"; description = "Aiohttp mock library that routes requests through a real test server"; homepage = "https://github.com/Polandia94/aiointercept"; license = lib.licenses.mit; maintainers = [ lib.maintainers.dotlambda ]; };})