diff options
author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-05-09 22:39:51 +0100 |
---|---|---|
committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-05-09 22:40:28 +0100 |
commit | f3f64aa4b8ba7c61c2ced63e6e348c78a5b4170e (patch) | |
tree | 7e58ef9c0c0a82fd402f6f4669324fd1e192f480 | |
parent | 4205370e076d09c594192cecfcd34ca36432d01c (diff) |
gnu: python-httpretty: Move to python-web.
* gnu/packages/web.scm: ... to here.
* gnu/packages/python-web.scm (python-httpretty): Move from here ...
Change-Id: Idcdf8e2c1dc808f243314a53f03e4ab9b8a0c620
-rw-r--r-- | gnu/packages/python-web.scm | 57 | ||||
-rw-r--r-- | gnu/packages/web.scm | 57 |
2 files changed, 57 insertions, 57 deletions
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index aa11919f37..0e972958aa 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -600,6 +600,63 @@ 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-httpretty + (package + (name "python-httpretty") + (version "1.1.4") + (source + (origin + (method url-fetch) + (uri (pypi-uri "httpretty" version)) + (sha256 + (base32 "0s1vjdaf3pk2xd0hvi5f7p3jm2rgwpbc734jdp9r50m1smfhxpi0")))) + (build-system pyproject-build-system) + (arguments + (list + #:test-flags + ;; Only run Unit tests. + #~(list "--ignore=tests/bugfixes" + "--ignore=tests/functional" + "--ignore=tests/pyopenssl" + "-k" (string-join + ;; Tests pattern failing with one of these errors: + ;; AttributeError: '(str|bool|bytes|list|tuple)' object + ;; has no attribute 'should' + ;; AttributeError: 'function' object has no attribute + ;; 'when' + ;; AttributeError: 'AssertionBuilder' object has no + ;; attribute 'should_not' + (list "not fake_socket_passes_through" + "fakesock_socket" + "request_parse_body_when" + "test_Entry_class_normalizes_headers" + "test_has_request" + "test_httpretty_should_raise_proper" + "test_parse_request_line_connect" + "test_request_parse_querystring" + "test_request_string_representation" + "test_request_stubs_internals") + " and not ")) + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'pre-check + (lambda _ + (setenv"EVENTLET_NO_GREENDNS" "yes")))))) + (native-inputs + (list nss-certs-for-test + python-freezegun + python-mock + python-pytest + python-setuptools + python-sure + python-wheel)) + (home-page "https://httpretty.readthedocs.io") + (synopsis "HTTP client mock for Python") + (description + "@code{httpretty} is a helper for faking web requests,inspired by Ruby's +@code{fakeweb}.") + (license license:expat))) + (define-public python-huggingface-hub (package (name "python-huggingface-hub") diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index e337caf745..3ade632cc8 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -7202,63 +7202,6 @@ message stream (in a web server that is per connection).") efficient where possible.") (license license:expat))) -(define-public python-httpretty - (package - (name "python-httpretty") - (version "1.1.4") - (source - (origin - (method url-fetch) - (uri (pypi-uri "httpretty" version)) - (sha256 - (base32 "0s1vjdaf3pk2xd0hvi5f7p3jm2rgwpbc734jdp9r50m1smfhxpi0")))) - (build-system pyproject-build-system) - (arguments - (list - #:test-flags - ;; Only run Unit tests. - #~(list "--ignore=tests/bugfixes" - "--ignore=tests/functional" - "--ignore=tests/pyopenssl" - "-k" (string-join - ;; Tests pattern failing with one of these errors: - ;; AttributeError: '(str|bool|bytes|list|tuple)' object - ;; has no attribute 'should' - ;; AttributeError: 'function' object has no attribute - ;; 'when' - ;; AttributeError: 'AssertionBuilder' object has no - ;; attribute 'should_not' - (list "not fake_socket_passes_through" - "fakesock_socket" - "request_parse_body_when" - "test_Entry_class_normalizes_headers" - "test_has_request" - "test_httpretty_should_raise_proper" - "test_parse_request_line_connect" - "test_request_parse_querystring" - "test_request_string_representation" - "test_request_stubs_internals") - " and not ")) - #:phases - #~(modify-phases %standard-phases - (add-before 'check 'pre-check - (lambda _ - (setenv"EVENTLET_NO_GREENDNS" "yes")))))) - (native-inputs - (list nss-certs-for-test - python-freezegun - python-mock - python-pytest - python-setuptools - python-sure - python-wheel)) - (home-page "https://httpretty.readthedocs.io") - (synopsis "HTTP client mock for Python") - (description - "@code{httpretty} is a helper for faking web requests,inspired by Ruby's -@code{fakeweb}.") - (license license:expat))) - (define-public jo (package (name "jo") |