diff options
author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-01-25 22:03:48 +0000 |
---|---|---|
committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-01-25 22:18:09 +0000 |
commit | c20b77d4a94c7ac52ab208921888ef7070169a77 (patch) | |
tree | 319053d9eb8e142d62b377758ec108fbb030b3e9 /gnu/packages/python-web.scm | |
parent | c74830afebce4f1d10f5426afde4606477c4ee97 (diff) |
gnu: Add python-hookdns.
* gnu/packages/python-web.scm (python-hookdns): New variable.
Change-Id: I67c717ae18d9cc4189ef5657cbcb240c48e264a7
Diffstat (limited to 'gnu/packages/python-web.scm')
-rw-r--r-- | gnu/packages/python-web.scm | 52 |
1 files changed, 52 insertions, 0 deletions
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 @@ The event dispatch is implicit, which means you can easily use @code{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") |