diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 3faa6db06a..f466969456 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -374,6 +374,58 @@ (define-public python-eventlet from the Python interpreter, or as a small part of a larger application.") (license license:expat))) +(define-public python-hookdns + (package + (name "python-hookdns") + (version "2.0.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "hookdns" version)) + (sha256 + (base32 "087x12dy6slhyqwqblby2fpjdcy61yk3lqp3fplami0rmbn02fb7")))) + (build-system pyproject-build-system) + (arguments + (list + #:test-flags + #~(list "-k" (string-join + ;; Tests requiring networking. + (list + "not test_patch_contextmanager_with_another_hostname" + "test_patch_contextmanager_with_another_hostname_ipv6" + "test_patch_contextmanager_with_ipv4" + "test_patch_contextmanager_with_name" + "test_patch_contextmanager_with_public_fqdn_and_" + "test_patch_contextmanager_with_unknown_hostname" + "test_patch_decorator_with_another_hostname" + "test_patch_decorator_with_another_hostname_ipv6" + "test_patch_decorator_with_ipv4" + "test_patch_decorator_with_name" + "test_patch_decorator_with_public_fqdn_and_a_name_for_" + "test_patch_decorator_with_unknown_hostname" + "test_real_getaddrinfo_with_name_ipv6" + "test_real_getaddrinfo_with_public_fqdn_ipv4" + "test_real_getaddrinfo_with_public_fqdn_ipv6" + "test_real_gethostbyname_ex_with_public_fqdn" + "test_real_gethostbyname_with_public_fqdn" + "test_real_requests_ip" + "test_real_requests_name" + "test_real_requests_with_public_fqdn" + "test_reentrant") + " and not ")))) + (native-inputs + (list python-pytest + python-requests + python-setuptools + python-wheel)) + (home-page "https://github.com/cle-b/hookdns") + (synopsis "DNS resolution customization library") + (description + "HookDNS implements functionality that allows for modifying name +resolution in a Python script without any changes to the hosts file or the use +of a fake DNS resolver.") + (license license:asl2.0))) + (define-public python-huggingface-hub (package (name "python-huggingface-hub")