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 /gnu/packages/python-web.scm | |
| 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
Diffstat (limited to 'gnu/packages/python-web.scm')
| -rw-r--r-- | gnu/packages/python-web.scm | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index aa11919f37b..0e972958aa9 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 | |||
| 600 | of a fake DNS resolver.") | 600 | of a fake DNS resolver.") |
| 601 | (license license:asl2.0))) | 601 | (license license:asl2.0))) |
| 602 | 602 | ||
| 603 | (define-public python-httpretty | ||
| 604 | (package | ||
| 605 | (name "python-httpretty") | ||
| 606 | (version "1.1.4") | ||
| 607 | (source | ||
| 608 | (origin | ||
| 609 | (method url-fetch) | ||
| 610 | (uri (pypi-uri "httpretty" version)) | ||
| 611 | (sha256 | ||
| 612 | (base32 "0s1vjdaf3pk2xd0hvi5f7p3jm2rgwpbc734jdp9r50m1smfhxpi0")))) | ||
| 613 | (build-system pyproject-build-system) | ||
| 614 | (arguments | ||
| 615 | (list | ||
| 616 | #:test-flags | ||
| 617 | ;; Only run Unit tests. | ||
| 618 | #~(list "--ignore=tests/bugfixes" | ||
| 619 | "--ignore=tests/functional" | ||
| 620 | "--ignore=tests/pyopenssl" | ||
| 621 | "-k" (string-join | ||
| 622 | ;; Tests pattern failing with one of these errors: | ||
| 623 | ;; AttributeError: '(str|bool|bytes|list|tuple)' object | ||
| 624 | ;; has no attribute 'should' | ||
| 625 | ;; AttributeError: 'function' object has no attribute | ||
| 626 | ;; 'when' | ||
| 627 | ;; AttributeError: 'AssertionBuilder' object has no | ||
| 628 | ;; attribute 'should_not' | ||
| 629 | (list "not fake_socket_passes_through" | ||
| 630 | "fakesock_socket" | ||
| 631 | "request_parse_body_when" | ||
| 632 | "test_Entry_class_normalizes_headers" | ||
| 633 | "test_has_request" | ||
| 634 | "test_httpretty_should_raise_proper" | ||
| 635 | "test_parse_request_line_connect" | ||
| 636 | "test_request_parse_querystring" | ||
| 637 | "test_request_string_representation" | ||
| 638 | "test_request_stubs_internals") | ||
| 639 | " and not ")) | ||
| 640 | #:phases | ||
| 641 | #~(modify-phases %standard-phases | ||
| 642 | (add-before 'check 'pre-check | ||
| 643 | (lambda _ | ||
| 644 | (setenv"EVENTLET_NO_GREENDNS" "yes")))))) | ||
| 645 | (native-inputs | ||
| 646 | (list nss-certs-for-test | ||
| 647 | python-freezegun | ||
| 648 | python-mock | ||
| 649 | python-pytest | ||
| 650 | python-setuptools | ||
| 651 | python-sure | ||
| 652 | python-wheel)) | ||
| 653 | (home-page "https://httpretty.readthedocs.io") | ||
| 654 | (synopsis "HTTP client mock for Python") | ||
| 655 | (description | ||
| 656 | "@code{httpretty} is a helper for faking web requests,inspired by Ruby's | ||
| 657 | @code{fakeweb}.") | ||
| 658 | (license license:expat))) | ||
| 659 | |||
| 603 | (define-public python-huggingface-hub | 660 | (define-public python-huggingface-hub |
| 604 | (package | 661 | (package |
| 605 | (name "python-huggingface-hub") | 662 | (name "python-huggingface-hub") |
