aboutsummaryrefslogtreecommitdiff
-rw-r--r--gnu/packages/qt.scm21
1 files changed, 11 insertions, 10 deletions
diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
index 8d5073c06a..0ad36f4f0d 100644
--- a/gnu/packages/qt.scm
+++ b/gnu/packages/qt.scm
@@ -1121,19 +1121,20 @@ HostData=lib/qt5
(license (package-license qtbase))))
(define-public qtimageformats-5
- (package (inherit qtsvg-5)
+ (package
+ (inherit qtsvg-5)
(name "qtimageformats")
(version "5.15.8")
(source (origin
- (method url-fetch)
- (uri (qt-url name version))
- (sha256
- (base32
- "0c6fq9zcw5hbkiny56wx2fbm123x14l7habydv6zhvnhn3rhwi31"))
- (modules '((guix build utils)))
- (snippet
- '(begin
- (delete-file-recursively "src/3rdparty")))))
+ (method url-fetch)
+ (uri (qt-url name version))
+ (sha256
+ (base32
+ "0c6fq9zcw5hbkiny56wx2fbm123x14l7habydv6zhvnhn3rhwi31"))
+ (modules '((guix build utils)))
+ (snippet
+ '(begin
+ (delete-file-recursively "src/3rdparty")))))
(native-inputs `())
(inputs
(list jasper
system copy) #:use-module (guix build-system pyproject) #:use-module (guix build-system python) #:use-module (guix download) #:use-module (guix gexp) #:use-module (guix git-download) #:use-module (guix packages) #:use-module (guix utils) #:use-module (gnu packages admin) #:use-module (gnu packages base) #:use-module (gnu packages bash) #:use-module (gnu packages certs) #:use-module (gnu packages check) #:use-module (gnu packages cmake) #:use-module (gnu packages compression) #:use-module (gnu packages crates-io) #:use-module (gnu packages crates-web) #:use-module (gnu packages curl) #:use-module (gnu packages databases) #:use-module (gnu packages django) #:use-module (gnu packages freedesktop) #:use-module (gnu packages glib) #:use-module (gnu packages gnupg) #:use-module (gnu packages graphviz) #:use-module (gnu packages groff) #:use-module (gnu packages imagemagick) #:use-module (gnu packages libevent) #:use-module (gnu packages libffi) #:use-module (gnu packages linux) #:use-module (gnu packages node) #:use-module (gnu packages openstack) #:use-module (gnu packages pcre) #:use-module (gnu packages photo) #:use-module (gnu packages pkg-config) #:use-module (gnu packages protobuf) #:use-module (gnu packages python) #:use-module (gnu packages python-build) #:use-module (gnu packages python-check) #:use-module (gnu packages python-compression) #:use-module (gnu packages python-crypto) #:use-module (gnu packages python-science) #:use-module (gnu packages python-xyz) #:use-module (gnu packages qt) #:use-module (gnu packages rdf) #:use-module (gnu packages rpc) #:use-module (gnu packages rust-apps) #:use-module (gnu packages serialization) #:use-module (gnu packages sphinx) #:use-module (gnu packages texinfo) #:use-module (gnu packages time) #:use-module (gnu packages tls) #:use-module (gnu packages version-control) #:use-module (gnu packages web) #:use-module (gnu packages xml) #:use-module (gnu packages) #:use-module (srfi srfi-1)) (define-public python-huggingface-hub (package (name "python-huggingface-hub") (version "0.23.2") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/huggingface/huggingface_hub") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "0hygxqcixkc1d9sr47j2km6z0p17aj4k1dzm4cvpddrvhrgqayq5")))) (build-system pyproject-build-system) (arguments (list #:test-flags ;; We don't have sentence_transformers... '(list "--ignore=contrib/sentence_transformers/test_sentence_transformers.py" ;; ...nor do we have InquirerPy... "--ignore=tests/test_command_delete_cache.py" ;; ...or timm... "--ignore=contrib/timm/test_timm.py" ;; ...or spacy_huggingface_hub "--ignore=contrib/spacy/test_spacy.py" ;; These all require internet access "--ignore=tests/test_cache_no_symlinks.py" "--ignore=tests/test_cache_layout.py" "--ignore=tests/test_commit_scheduler.py" "--ignore=tests/test_file_download.py" "--ignore=tests/test_hf_api.py" "--ignore=tests/test_hf_file_system.py" "--ignore=tests/test_inference_api.py" "--ignore=tests/test_inference_async_client.py" "--ignore=tests/test_inference_client.py" "--ignore=tests/test_inference_text_generation.py" "--ignore=tests/test_login_utils.py" "--ignore=tests/test_offline_utils.py" "--ignore=tests/test_repocard.py" "--ignore=tests/test_repository.py" "--ignore=tests/test_snapshot_download.py" "--ignore=tests/test_utils_cache.py" "--ignore=tests/test_utils_git_credentials.py" "--ignore=tests/test_utils_http.py" "--ignore=tests/test_utils_pagination.py" "--ignore=tests/test_webhooks_server.py" "-k" (string-append "not test_push_to_hub" " and not test_from_pretrained_model_id_only" " and not test_from_pretrained_model_id_and_revision")) #:phases '(modify-phases %standard-phases (add-before 'check 'pre-check ;; Some tests need to write to HOME. (lambda _ (setenv "HOME" "/tmp")))))) (propagated-inputs (list python-filelock python-fsspec python-packaging python-pyyaml python-requests python-tqdm python-typing-extensions)) (native-inputs (list python-aiohttp python-fastapi python-jedi python-jinja2 python-mypy python-numpy python-pillow python-pydantic python-pytest python-pytest-asyncio python-pytest-cov python-pytest-env python-pytest-rerunfailures python-pytest-vcr python-pytest-xdist python-setuptools python-types-requests python-types-toml python-types-urllib3 python-typing-extensions python-urllib3 python-wheel)) (home-page "https://github.com/huggingface/huggingface_hub") (synopsis "Client library for accessing the huggingface.co hub") (description "This package provides a client library to download and publish models, datasets and other repos on the @url{huggingface.co} hub.") (license license:asl2.0))) (define-public python-lazr-restfulclient (package (name "python-lazr-restfulclient") (version "0.14.4") (source (origin (method url-fetch) (uri (pypi-uri "lazr.restfulclient" version)) (sha256 (base32 "11yhlqmdf2cqbdfzn8gdmzvmcivh4fflr18zf412sflvfjrdc3xz")))) (build-system python-build-system) ;; Disable the test suite to avoid the lazr.authentication requirement, ;; which requires the ancient 'oauth', a Python 2 only library. (arguments (list #:tests? #f)) (propagated-inputs (list python-distro python-httplib2 python-oauthlib python-pyparsing python-six python-wadllib)) (home-page "https://launchpad.net/lazr.restfulclient") (synopsis "Web client Python library extending wadlib") (description "This package provides a programmable client library that adds functionality on top of @code{wadlib}.") (license license:lgpl3+))) (define-public python-launchpadlib (package (name "python-launchpadlib") (version "1.10.16") (source (origin (method url-fetch) (uri (pypi-uri "launchpadlib" version)) (sha256 (base32 "106aixwchwyb100wlf4cnj1vgsi2d7x40ps8xv8az27r6qwv3x0d")))) (build-system python-build-system) (arguments (list #:phases #~(modify-phases %standard-phases (add-before 'check 'set-home (lambda _ ;; Tests require a writable home. (setenv "HOME" "/tmp")))))) (propagated-inputs (list python-httplib2 python-keyring python-lazr-restfulclient python-lazr-uri)) (native-inputs (list python-mock python-testresources python-wadllib)) (home-page "https://help.launchpad.net/API/launchpadlib") (synopsis "Python client library for Launchpad's web service") (description "@code{launchpadlib} is a Python library that allows scripting Launchpad via its the web service API.") (license license:lgpl3+))) (define-public python-lazr-uri (package (name "python-lazr-uri") (version "1.0.6") (source (origin (method url-fetch) (uri (pypi-uri "lazr.uri" version)) (sha256 (base32 "0r44rw0bj5mayhqwfwj1dnrjgzj1lrh7ishiddd1vygnrczqa9jh")))) (build-system python-build-system) (native-inputs (list python-zope-testrunner)) (home-page "https://launchpad.net/lazr.uri") (synopsis "Python URI manipulation library") (description "This Python package provides a self-contained, easily reusable library for parsing, manipulating, and generating URIs.") (license license:lgpl3))) (define-public python-portend (package (name "python-portend") (version "3.2.0") (source (origin (method url-fetch) (uri (pypi-uri "portend" version)) (sha256 (base32 "0wpvixicc3d0lack65554mvdrrckkn18p1xcgiv9v5cwq59a6l2j")))) (build-system pyproject-build-system) ;; Do not test pyproject.toml with python-pytest-checkdocs as it tries to ;; download dependencies. (arguments '(#:test-flags '("-k" "not project"))) (propagated-inputs (list python-tempora)) ;; TODO: Add python-pytest-ruff to native-inputs once it has been packaged. (native-inputs (list python-pytest python-pytest-black python-pytest-checkdocs python-pytest-cov python-pytest-enabler python-pytest-mypy python-setuptools python-wheel)) (home-page "https://github.com/jaraco/portend") (synopsis "Monitor TCP ports for bound or unbound states") (description "@code{python-portend} can be used to monitor TCP ports for bound or unbound states. For example, waiting for a port to be occupied or freed within a set timeout. @code{python-portend} can also be used directly from the command line.") (license license:expat))) (define-public python-prawcore (package (name "python-prawcore") (version "2.4.0") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/praw-dev/prawcore") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "1y7gh7kk002b2h1ppkr1llb2gjfnby28zvx11j4ji0wm3r3rjh5l")))) (build-system pyproject-build-system) (arguments ;; XXX: These tests fail with an incomplete request response. (list #:test-flags #~'("-k" #$(string-append "not test_revoke__access_token_with_refresh_set" " and not test_revoke__access_token_without_refresh_set" " and not test_revoke__refresh_token_with_access_set" " and not test_refresh__with_scopes" " and not test_request__patch")))) (native-inputs (list python-betamax python-betamax-matchers python-betamax-serializers python-flit-core python-mock python-pytest python-testfixtures)) (propagated-inputs (list python-requests)) (synopsis "Core component of PRAW") (description "PRAWcore is a low-level communication layer used by PRAW.") (home-page "https://praw.readthedocs.io/en/latest/") (license license:bsd-2))) (define-public python-praw (package (name "python-praw") (version "7.8.1") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/praw-dev/praw") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "05qq43l4334cq8r8k731qnb45nq12vvfdxwbr6q84a1hafp7n4cg")))) (build-system pyproject-build-system) (arguments (list #:test-flags #~(list "--ignore=tests/units/models" "--ignore=tests/integration/models" "--ignore=tests/unit/test_config.py" "--ignore=tests/integration/test_reddit.py"))) (native-inputs (list python-betamax python-betamax-matchers python-flit-core python-pytest)) (propagated-inputs (list python-prawcore python-update-checker python-websocket-client)) (synopsis "Python Reddit API Wrapper") (description "PRAW is a Python package that allows for simple access to Reddit’s API. It aims to be easy to use and internally follows all of Reddit’s API rules.") (home-page "https://praw.readthedocs.io/en/latest/") (license license:bsd-2))) (define-public python-frozenlist (package (name "python-frozenlist") (version "1.2.0") (source (origin (method url-fetch) (uri (pypi-uri "frozenlist" version)) (sha256 (base32 "1pkr23by7pk9lsmsh0wiqirpkq3f1f08b0615nbzysn51bk1n838")))) (build-system python-build-system) (arguments '(#:phases (modify-phases %standard-phases (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? (invoke "pytest" "tests"))))))) (native-inputs (list python-pytest)) (home-page "https://github.com/aio-libs/frozenlist") (synopsis "List-like data structure for Python") (description "@code{frozenlist.FrozenList} is a list-like structure which implements @code{collections.abc.MutableSequence}. It can be made immutable by calling @code{FrozenList.freeze}.") (license license:asl2.0))) (define-public python-aiosignal (package (name "python-aiosignal") (version "1.3.1") (source (origin (method url-fetch) (uri (pypi-uri "aiosignal" version)) (sha256 (base32 "1z4cnqww6j0xl6f3vx2r6kfv1hdny1pnlll7difvfj8nbvhrdkal")))) (build-system pyproject-build-system) (arguments (list #:test-flags #~(list "tests"))) (propagated-inputs (list python-frozenlist)) (native-inputs (list python-pytest python-pytest-asyncio python-pytest-cov python-setuptools python-wheel)) (home-page "https://github.com/aio-libs/aiosignal") (synopsis "Callback manager for Python @code{asyncio} projects") (description "This Python module provides @code{Signal}, an abstraction to register asynchronous callbacks. The @code{Signal} abstraction can be used for adding, removing and dropping callbacks.") (license license:asl2.0))) (define-public python-aiohttp (package (name "python-aiohttp") (version "3.8.4") (source (origin (method url-fetch) (uri (pypi-uri "aiohttp" version)) (sha256 (base32 "0p5bj6g7ca19gvwk8fz00k579ma9w9kd27ssh2zl3r61ca8ilbmz")) (snippet #~(begin (use-modules ((guix build utils))) ;; TODO: Unbundle the llhttp sources. ;; (delete-file-recursively "vendor") (delete-file "aiohttp/_helpers.c") (delete-file "aiohttp/_http_parser.c") (delete-file "aiohttp/_http_writer.c") (delete-file "aiohttp/_websocket.c"))))) (build-system python-build-system) (arguments '(#:phases (modify-phases %standard-phases (add-after 'unpack 'fix-tests (lambda _ ;; Disable brotli tests, because we’re not providing that ;; optional library. (substitute* "tests/test_http_parser.py" ((" async def test_feed_eof_no_err_brotli") " @pytest.mark.xfail\n async def test_feed_eof_no_err_brotli")) ;; Make sure the timestamp of this file is > 1990, because a few ;; tests like test_static_file_if_modified_since_past_date depend ;; on it. (let ((late-90s (* 60 60 24 365 30))) (utime "tests/data.unknown_mime_type" late-90s late-90s)) ;; Disable test that attempts to access httpbin.org. (substitute* "tests/test_formdata.py" (("async def test_mark_formdata_as_processed.*" all) (string-append "@pytest.mark.xfail\n" all))) ;; Don't test the aiohttp pytest plugin to avoid a dependency loop. (delete-file "tests/test_pytest_plugin.py"))) (add-before 'build 'cythonize (lambda _ ;; Adapted from the Makefile. (with-directory-excursion "aiohttp" (for-each (lambda (file) (invoke "cython" "-3" file "-I" ".")) (find-files "." "_.*\\.pyx$"))))) (replace 'check (lambda* (#:key tests? #:allow-other-keys) (let ((skipped-tests (string-append ;; This test probably requires to be run with the ;; library loaded from the the build directory. "not test_c_parser_loaded and " ;; TODO: These tests fail with recent versions of Pytest ;; and the fix is difficult to backport: ;; https://github.com/aio-libs/aiohttp/pull/6872 ;; Re-enable after 3.9. "not test_session_close_awaitable and " "not test_async_with_session and " "not test_close_run_until_complete_not_deprecated and " ;; Disable the following tests as they require ;; networking. "not TestDeflateBuffer and " "not test_client_session_timeout_zero and " "not test_empty_body and " "not test_mark_formdata_as_processed[pyloop] and " "not test_receive_runtime_err[pyloop] " ;; These tests fail for unknown reasons (see: ;; https://github.com/aio-libs/aiohttp/issues/7130) "and not test_no_warnings " "and not test_default_loop " "and not test_ctor_global_loop " "and not test_set_loop_default_loop "))) (when tests? ;; This tests requires the 'proxy.py' module, not yet ;; packaged. (delete-file "tests/test_proxy_functional.py") ;; Sometimes tests fail when run in parallel. (invoke "pytest" "-vv" "-o" "addopts=''" "--ignore=aiohttp" ;; These tests cause errors (see: ;; https://github.com/aio-libs/aiohttp/issues/7130). "--ignore" "tests/test_web_sendfile_functional.py" "--ignore" "tests/test_web_urldispatcher.py" "-k" skipped-tests)))))))) (propagated-inputs (list python-aiodns python-aiosignal python-attrs python-asynctest python-async-timeout python-charset-normalizer python-frozenlist python-idna-ssl python-multidict python-yarl)) (native-inputs (list gunicorn-bootstrap python-async-generator python-cython python-freezegun python-pytest python-pytest-mock python-pytest-xdist python-re-assert)) (home-page "https://github.com/aio-libs/aiohttp/") (synopsis "Async HTTP client/server framework (asyncio)") (description "@code{aiohttp} is an asynchronous HTTP client/server framework. Its main features are: @itemize @item Supports both client and server side of HTTP protocol. @item Supports both client and server Web-Sockets out-of-the-box without the Callback Hell. @item Web-server has middlewares and pluggable routing. @end itemize") (license license:asl2.0))) (define-public python-aiohttp-socks (package (name "python-aiohttp-socks") (version "0.7.1") (source (origin (method url-fetch) (uri (pypi-uri "aiohttp_socks" version)) (sha256 (base32 "06il43dv6qm858af841vq9qadw6h7qsfs06nnwagmwqyi72cl592")))) (build-system python-build-system) (propagated-inputs (list python-aiohttp python-attrs python-socks)) (home-page "https://github.com/romis2012/aiohttp-socks") (synopsis "SOCKS proxy connector for aiohttp") (description "This package provides a SOCKS proxy connector for aiohttp. It supports SOCKS4(a) and SOCKS5.") (license license:asl2.0))) (define-public python-aiodns (package (name "python-aiodns") (version "3.0.0") (source (origin (method url-fetch) (uri (pypi-uri "aiodns" version)) (sha256 (base32 "1mlcw14hxyzd2yg89gj1l84gfi8nbl7h32iw17myxz23wymxyswl")))) (build-system python-build-system) (propagated-inputs (list python-pycares)) (arguments `(#:tests? #f)) ;tests require internet access (home-page "https://github.com/saghul/aiodns") (synopsis "Simple DNS resolver for asyncio") (description "@code{aiodns} provides a simple way for doing asynchronous DNS resolutions with a synchronous looking interface by using @url{https://github.com/saghul/pycares,pycares}.") (license license:expat))) (define-public python-aioquic (package (name "python-aioquic") (version "1.2.0") (source (origin (method url-fetch) (uri (pypi-uri "aioquic" version)) (sha256 (base32 "16bigrn5b46c7nmpzxhnlhh4y03hwc7dbd0mi5f8r53i7yxn64pr")))) (build-system pyproject-build-system) (arguments (list #:test-flags #~(list "-k" (string-join ;; AssertionError: AlertBadCertificate not raised (list "not test_verify_subject_no_subjaltname" ;; AttributeError: module ;; 'service_identity.cryptography' has no attribute ;; 'extract_patterns' "test_verify_subject_with_subjaltname" ;; AttributeError: module ;; 'service_identity.cryptography' has no attribute ;; 'extract_patterns' "test_verify_subject_with_subjaltname_ipaddress") " and not ")))) (native-inputs (list nss-certs-for-test python-pytest python-setuptools python-wheel)) (inputs (list openssl)) (propagated-inputs (list python-certifi python-pylsqpack python-pyopenssl python-service-identity)) (home-page "https://github.com/aiortc/aioquic") (synopsis "QUIC and HTTP3 implementation in Python") (description "@code{aioquic} is a library for the QUIC network protocol in Python. It features a minimal TLS 1.3 implementation, a QUIC stack and an HTTP/3 stack.") (license license:bsd-3))) (define-public python-aiorpcx (package (name "python-aiorpcx") (version "0.22.1") (source (origin (method url-fetch) (uri (pypi-uri "aiorpcX" version)) (sha256 (base32 "0lx54bcinp44fmr8q4bbffsqbkg8kdcwykf9i5jj0bj3sfzgf9k0")))) (build-system python-build-system) (propagated-inputs (list python-attrs)) (home-page "https://github.com/kyuupichan/aiorpcX") (synopsis "Generic asyncio RPC implementation") (description "The aiorpcX library is a generic asyncio implementation of RPC suitable for an application that is a client, server or both. The package includes a module with full coverage of JSON RPC versions 1.0 and 2.0, JSON RPC protocol auto-detection, and arbitrary message framing. It also comes with a SOCKS proxy client.") (license (list license:expat license:bsd-2)))) (define-public python-aiorpcx-0.18 (package (inherit python-aiorpcx) (version "0.18.7") (source (origin (method url-fetch) (uri (pypi-uri "aiorpcX" version)) (sha256 (base32 "1rswrspv27x33xa5bnhrkjqzhv0sknv5kd7pl1vidw9d2z4rx2l0")))))) (define-public python-aiostream (package (name "python-aiostream") (version "0.4.5") (source (origin ;; Tests not included in pypi release. (method git-fetch) (uri (git-reference (url "https://github.com/vxgmichel/aiostream") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "0l2ijb7yk0820wiyf6zrzx8fhzf8925an7r06mcaw3in1mr6rssq")))) (build-system python-build-system) (native-inputs (list python-pytest python-pytest-asyncio python-pytest-cov python-pytest-runner python-setuptools python-wheel)) (home-page "https://github.com/vxgmichel/aiostream") (synopsis "Generator-based operators for asynchronous iteration") (description "@code{aiostream} provides a collection of stream operators that can be combined to create asynchronous pipelines of operations. It can be seen as an asynchronous version of @code{itertools}, although some aspects are slightly different. All the provided operators return a unified interface called a stream. A stream is an enhanced asynchronous iterable.") (license license:gpl3))) (define-public python-asgiref (package (name "python-asgiref") (version "3.7.2") (source (origin (method url-fetch) (uri (pypi-uri "asgiref" version)) (sha256 (base32 "1vdgj8mikd2j6ijlhf7b4n2nxkvq72r1c0hj8mdvl6d8jfmf634y")))) (build-system python-build-system) (arguments '(#:phases (modify-phases %standard-phases (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? (invoke "pytest" "-vv"))))))) (native-inputs (list python-mypy python-pytest python-pytest-asyncio)) (propagated-inputs (list python-typing-extensions)) (home-page "https://github.com/django/asgiref/") (synopsis "ASGI specs, helper code, and adapters") (description "ASGI is a standard for Python asynchronous web apps and servers to communicate with each other, and positioned as an asynchronous successor to WSGI. This package includes libraries for implementing ASGI servers.") (license license:bsd-3))) (define-public python-asgi-csrf (package (name "python-asgi-csrf") (version "0.9") (source (origin (method git-fetch) ;for tests (uri (git-reference (url "https://github.com/simonw/asgi-csrf") (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "1j134mjh0ff61rvkm3q67m463j1bhyxc9dwsdany3scnd4vsqqws")))) (build-system pyproject-build-system) (arguments (list #:test-flags ;; Provide a null config to avoid the extraneous dependency on ;; python-pytest-coverage. #~(list "-c" "/dev/null" ;; Disable two failing tests (see: ;; https://github.com/simonw/asgi-csrf/issues/24). "-k" (string-append "not (test_multipart " "or test_multipart_failure_wrong_token)")))) (propagated-inputs (list python-itsdangerous python-multipart)) (native-inputs (list python-asgi-lifespan python-httpx python-pytest python-pytest-asyncio python-starlette python-setuptools python-wheel)) (home-page "https://github.com/simonw/asgi-csrf") (synopsis "ASGI middleware for protecting against CSRF attacks") (description "This Asynchronous Server Gateway Interface (ASGI) middleware protects against Cross-site request forgery (CSRF) attacks. It implements the Double Submit Cookie pattern, where a cookie is set that is then compared to a @code{csrftoken} hidden form field or a @code{x-csrftoken} HTTP header.") (license license:asl2.0))) (define-public python-asgi-lifespan (package (name "python-asgi-lifespan") (version "1.0.1") (source (origin (method git-fetch) ;for tests (uri (git-reference (url "https://github.com/florimondmanca/asgi-lifespan") (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "10a5ci9ddr8wnjf3wai7xifbbplirhyrgvw4p28q0ha63cvhb2j2")))) (build-system pyproject-build-system) (arguments (list #:test-flags '(list "-c" "/dev/null" ;ignore coverage-related options "-k" (string-append ;; XXX: Some tests fail because of a 'lifespan.shutdown.failed' ;; extra event, perhaps because our version of trio is older. "not (test_lifespan_manager[asyncio-None-ValueError-None]" " or test_lifespan_manager[asyncio-ValueError-None-None]" " or test_lifespan_manager[asyncio-ValueError-ValueError-None]" " or test_lifespan_manager[trio-None-ValueError-None]" " or test_lifespan_manager[trio-ValueError-None-None]" " or test_lifespan_manager[trio-ValueError-ValueError-None])")))) (native-inputs (list python-pytest python-pytest-asyncio python-pytest-trio python-starlette python-setuptools python-wheel)) (propagated-inputs (list python-sniffio)) (home-page "https://github.com/florimondmanca/asgi-lifespan") (synopsis "Programmatic startup/shutdown of ASGI apps") (description "Programmatically send startup/shutdown lifespan events into Asynchronous Server Gateway Interface (ASGI) applications. When used in combination with an ASGI-capable HTTP client such as HTTPX, this allows mocking or testing ASGI applications without having to spin up an ASGI server.") (license license:expat))) (define-public python-a2wsgi (package (name "python-a2wsgi") (version "1.10.7") (source (origin (method url-fetch) (uri (pypi-uri "a2wsgi" version)) (sha256 (base32 "13ikyfmkx7hlrbg5rpcdm6kw4wcsy00giil3f72hpb6sw7vjyinf")))) (build-system pyproject-build-system) (arguments (list #:test-flags #~(list "-k" (string-join (list "not test_starlette_stream_response" "test_starlette_base_http_middleware" "test_baize_stream_response") " and not ")) #:build-backend "pdm.backend")) (native-inputs (list python-pdm-backend python-pytest ;; python-baize ; not packed yet python-httpx-bootstrap ;; Cycle: python-a2wsgi->python-uvicorn-> ;; python-httpx->python-starlette->python-a2wsgi ;; python-starlette python-pytest-asyncio)) (home-page "https://github.com/abersheeran/a2wsgi") (synopsis "Convert WSGI to ASGI or vice versa") (description "This program converts a WSGI program to an ASGI program or the other way around. It depends only on the Python standard library.") (license license:asl2.0))) (define-public python-httpauth (package (name "python-httpauth") (version "0.4.1") (source (origin (method url-fetch) (uri (pypi-uri "httpauth" version)) (sha256 (base32 "1m6rwvivg61l3h34hf6p6gkqmr69sb1c4k5ha379nxq0p8bfgahb")))) (build-system pyproject-build-system) (native-inputs (list python-pytest)) (home-page "https://github.com/jonashaag/httpauth") (synopsis "WSGI HTTP Digest Authentication middleware") (description "@code{python-httpauth} is WSGI middleware that secures some/all routes using HTTP Digest Authentication.") (license license:bsd-2))) (define-public python-css-html-js-minify (package (name "python-css-html-js-minify") (version "2.5.5") (source (origin (method url-fetch) (uri (pypi-uri "css-html-js-minify" version ".zip")) (sha256 (base32 "0v3l2dqdk2y4r6ax259gs4ij1zzm9yxg6491s6254vs9w3vi37sa")))) (build-system python-build-system) ;; XXX: The git repository has no tags, and the PyPI releases do not ;; contain tests. (arguments '(#:tests? #f)) (native-inputs (list unzip)) (home-page "https://github.com/juancarlospaco/css-html-js-minify") (synopsis "CSS/HTML/JS minifier") (description "This package provides a single-file minifier for CSS, HTML, and JavaScript.") ;; XXX: The README just says "GNU GPL and GNU LGPL and MIT". From ;; <https://github.com/juancarlospaco/css-html-js-minify/issues/9> it ;; looks like the user can choose a license. (license (list license:gpl3+ license:lgpl3+ license:expat)))) (define-public python-aws-sam-translator (package (name "python-aws-sam-translator") (version "1.94.0") (source (origin (method git-fetch) ; no tests in PyPI release (uri (git-reference (url "https://github.com/aws/serverless-application-model") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "0rrmp2a2lr1bb909x34j7dqkdynx48hfwxg9m488s0mws68f78m3")))) (build-system pyproject-build-system) (arguments (list #:test-flags #~(list "--numprocesses" (number->string (parallel-job-count)) "--ignore=tests/bin/test_public_interface.py" "-k" (string-join ;; AttributeError: module 'pydantic.v1' has no attribute ;; 'error_wrappers' (list "not test_connector_with_empty_properties" "test_connector_with_invalid_permission" "test_connector_with_invalid_permission_type" "test_connector_without_source" "test_transform_invalid_document") " and not ") "tests") #:phases #~(modify-phases %standard-phases (add-after 'unpack 'fix-pytest-config (lambda _ ;; Drop test coverage requirements. (substitute* "pytest.ini" ((".*addopts.*") "")))) (add-before 'check 'pre-check (lambda _ (setenv "AWS_DEFAULT_REGION" "eu-west-3")))))) (native-inputs (list python-pytest python-setuptools python-pytest-xdist python-parameterized python-pyyaml python-wheel)) (propagated-inputs (list python-boto3 python-jsonschema python-pydantic python-typing-extensions)) (home-page "https://github.com/aws/serverless-application-model") (synopsis "Transform AWS SAM templates into AWS CloudFormation templates") (description "AWS SAM Translator is a library that transform @dfn{Serverless Application Model} (SAM) templates into AWS CloudFormation templates.") (license license:asl2.0))) (define-public python-aws-xray-sdk (package (name "python-aws-xray-sdk") (version "2.12.0") (home-page "https://github.com/aws/aws-xray-sdk-python") (source (origin (method git-fetch) (uri (git-reference (url home-page) (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "0082q89dq5ww0a7q7rnyhywqvy4i8h3c0mnj7ilv3b0indhkasl8")))) (build-system pyproject-build-system) (arguments (list #:test-flags '(list ;; Tries to connect to external network resources "--ignore=tests/ext/httpx" ;; TODO: How to configure Django for these tests? "--ignore=tests/ext/django" ;; These tests require packages not yet in Guix. "--ignore=tests/ext/aiobotocore/test_aiobotocore.py" "--ignore=tests/ext/aiohttp/test_middleware.py" "--ignore=tests/ext/pg8000/test_pg8000.py" "--ignore=tests/ext/psycopg2/test_psycopg2.py" "--ignore=tests/ext/pymysql/test_pymysql.py" "--ignore=tests/ext/pynamodb/test_pynamodb.py" "--ignore=tests/ext/sqlalchemy_core/test_postgres.py" "--ignore=tests/test_async_recorder.py" ;; FIXME: Why is this failing? "--ignore=tests/test_patcher.py" ;; These tests want to access httpbin.org. "--ignore=tests/ext/requests/test_requests.py" "--ignore=tests/ext/httplib/test_httplib.py" "--ignore=tests/ext/aiohttp/test_client.py") #:phases '(modify-phases %standard-phases (add-before 'check 'pre-check (lambda _ ;; Allow "import tests.utils" to work as expected. (setenv "PYTHONPATH" (getcwd))))))) (native-inputs (list ;; These are required for the test suite. python-bottle python-flask python-flask-sqlalchemy python-httpx python-mock python-pymysql python-pytest python-pytest-aiohttp python-pytest-asyncio python-pytest-benchmark python-requests python-sqlalchemy python-webtest python-setuptools python-wheel)) (propagated-inputs (list python-aiohttp python-botocore python-future python-jsonpickle python-urllib3 python-wrapt)) (synopsis "Profile applications on AWS X-Ray") (description "The AWS X-Ray SDK for Python enables Python developers to record and emit information from within their applications to the AWS X-Ray service.") (license license:asl2.0))) (define-public python-ovh (package (name "python-ovh") (version "1.1.0") (source (origin (method url-fetch) (uri (pypi-uri "ovh" version)) (sha256 (base32 "0ygniv12lixh9rvnjcd01gzbzk2b5xwcg2a59b7964a77dd9p3qh")))) (build-system pyproject-build-system) (arguments (list #:tests? #f)) ; XXX: tests require networking (propagated-inputs (list python-requests)) (native-inputs (list python-black python-coverage python-flake8 python-isort python-pytest python-pytest-cov python-setuptools python-sphinx python-wheel)) (home-page "https://api.ovh.com") (synopsis "Interact with OVHcloud APIs") (description "This package provides the official module to perform HTTP requests to the OVHcloud APIs.") (license license:bsd-3))) (define-public python-cbor2 (package (name "python-cbor2") (version "5.4.2.post1") (source (origin (method url-fetch) (uri (pypi-uri "cbor2" version)) (sha256 (base32 "15y78xcc3zkmvj1mdzz8gyhf3apbl91073kwhzbjk5abc1civwlw")))) (build-system pyproject-build-system) (native-inputs (list python-pytest python-pytest-cov python-setuptools python-setuptools-scm python-wheel)) (home-page "https://github.com/agronholm/cbor2") (synopsis "Concise Binary Object Representation (CBOR) (de)serializer") (description "This Python library provides encoding and decoding for the Concise Binary Object Representation (CBOR) (@url{https://www.rfc-editor.org/rfc/rfc8949.html, RFC 8949}) serialization format. The specification is fully compatible with the original RFC 7049. Among its features are: @itemize @item Simple API like the @code{json} or @code{pickle} modules. @item Support many CBOR tags with stdlib objects. @item Generic tag decoding. @item Shared value references including cyclic references. @item String references compact encoding with repeated strings replaced with indices. @item Optional C module backend tested on big- and little-endian architectures. @item Extensible tagged value handling using tag_hook and object_hook on decode and default on encode. @end itemize") (license license:expat))) (define-public python-cfn-lint (package (name "python-cfn-lint") (version "1.22.1") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/aws-cloudformation/cfn-lint") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "1zz121r9yv1irwdbk07s7958fh43h3r3q39qcj0gv4kpgb0vdf32")))) (build-system pyproject-build-system) (arguments (list #:test-flags #~(list "-k" (string-join (list ;; Skip documentation tests. "not test_update_docs" ;; Tests fail with error: AssertinError ... "test_parameter_for_autopublish_code_sha256" "test_sam_with_language_extension" ;; Test fails with error: diff error while comparing ;; graphs. "test_build_graph") " and not ")))) (native-inputs (list python-defusedxml python-pydot python-pytest python-setuptools python-wheel)) (propagated-inputs (list python-aws-sam-translator python-importlib-resources python-jschema-to-python python-jsonpatch python-junit-xml python-networkx python-pyyaml python-regex python-sarif-om python-sympy python-typing-extensions)) (home-page "https://github.com/aws-cloudformation/cfn-lint") (synopsis "Validate CloudFormation templates") (description "This package lets you validate CloudFormation YAML/JSON templates against the CloudFormation spec and additional checks. Includes checking valid values for resource properties and best practices.") (license license:expat))) (define-public python-jschema-to-python (package (name "python-jschema-to-python") (version "1.2.3") (source (origin (method url-fetch) (uri (pypi-uri "jschema_to_python" version)) (sha256 (base32 "14cvaiwm56g0v6p7zviikaa5i9ln3yqy910jmp60hirhbpz19zvn")))) (build-system python-build-system) (propagated-inputs (list python-attrs python-jsonpickle python-pbr)) (native-inputs (list python-pytest)) (home-page "https://github.com/microsoft/jschema-to-python") (synopsis "Generate Python classes from a JSON schema") (description "This package generates source code for Python classes from a @url{http://jschema.org,JSchema} JSON schema.") (license license:expat))) (define-public python-sarif-om (package (name "python-sarif-om") (version "1.0.4") (source (origin (method url-fetch) (uri (pypi-uri "sarif_om" version)) (sha256 (base32 "167gb8xjm0310km3w1s12bqldbv7zyklkr4j5900vq4361ml2pyd")))) (build-system python-build-system) (propagated-inputs (list python-attrs)) (native-inputs (list python-pbr)) (home-page "https://github.com/microsoft/sarif-python-om") (synopsis "Python implementation of the SARIF 2.1.0 object model") (description "This module contains classes for the object model defined by the @url{https://sarifweb.azurewebsites.net,Static Analysis Results Interchange Format (SARIF)} file format.") (license license:expat))) (define-public python-falcon (package (name "python-falcon") (version "3.1.0") (source (origin ;; Use git, as there are some test files missing from the PyPI release, ;; such as 'examples' directory. (method git-fetch) (uri (git-reference (url "https://github.com/falconry/falcon") (commit version))) (file-name (git-file-name name version)) (modules '((guix build utils))) (snippet '(begin (delete-file-recursively "falcon/vendor") (substitute* "setup.py" ((".*falcon\\.vendor\\.mimeparse.*") "")) (substitute* '("falcon/media/handlers.py" "falcon/request.py" "tests/test_deps.py") (("from falcon\\.vendor ") "") (("mimeparse.mimeparse") "mimeparse")))) (sha256 (base32 "17k31d8avl63xsr6fzvmkxcsm7gnz5dqpgsz65psm1lpc38c79k3")))) (build-system pyproject-build-system) (arguments (list #:test-flags '(list "--ignore-glob=examples/*" "--ignore-glob=bench/*" "tests") #:phases '(modify-phases %standard-phases (add-before 'check 'set-HOME (lambda _ (setenv "HOME" "/tmp"))) (replace 'check (lambda* (#:key tests? test-flags #:allow-other-keys) (when tests? (apply invoke "pytest" "-vv" test-flags))))))) (propagated-inputs (list python-mimeparse)) (native-inputs (list python-aiofiles python-cbor2 python-cython ;for faster binaries python-fakeredis python-httpx python-mujson python-msgpack python-orjson python-pecan python-pillow python-pytest python-pytest-asyncio python-pytest-runner python-pyyaml python-rapidjson python-requests python-testtools python-ujson python-websockets)) (home-page "https://falconframework.org") (synopsis "Web framework for building APIs and application backends") (description "Falcon is a web API framework for building microservices, application backends and higher-level frameworks. Among its features are: @itemize @item Optimized and extensible code base @item Routing via URI templates and REST-inspired resource classes @item Access to headers and bodies through request and response classes @item Request processing via middleware components and hooks @item Idiomatic HTTP error responses @item Straightforward exception handling @item Unit testing support through WSGI helpers and mocks @item Compatible with both CPython and PyPy @item Cython support for better performance when used with CPython @end itemize") (license license:asl2.0))) (define-public python-falcon-cors (package (name "python-falcon-cors") (version "1.1.7") (source (origin (method url-fetch) (uri (pypi-uri "falcon-cors" version)) (sha256 (base32 "12pym7hwsbd8b0c1azn95nas8gm3f1qpr6lpyx0958xm65ffr20p")))) (build-system python-build-system) (native-inputs (list python-falcon)) (home-page "https://github.com/lwcolton/falcon-cors") (synopsis "Falcon @dfn{cross-origin resource sharing} (CORS) library") (description "This middleware provides @dfn{cross-origin resource sharing} (CORS) support for Falcon. It allows applying a specially crafted CORS object to the incoming requests, enabling the ability to serve resources over a different origin than that of the web application.") (license license:asl2.0))) (define-public python-furl (package (name "python-furl") (version "2.1.3") (source (origin (method url-fetch) (uri (pypi-uri "furl" version)) (sha256 (base32 "0knc76pm8pzigs3bpx9fccfsfxqrgblqphar46hq9i364vz8hqas")))) (build-system python-build-system) (propagated-inputs (list python-six python-orderedmultidict)) (native-inputs (list python-flake8)) (home-page "https://github.com/gruns/furl") (synopsis "URL manipulation in Python") (description "Furl provides an easy-to-use alternative to the @code{urllib} and @code{urlparse} modules for manipulating URLs.") (license license:unlicense))) (define-public python-httplib2 (package (name "python-httplib2") (version "0.22.0") (source (origin ;; Tests not included in the release tarball. (method git-fetch) (uri (git-reference (url "https://github.com/httplib2/httplib2") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "1zkp3glv0iha7p68p5m0sb8mrrammkdc0mx32517xry52s4iva7g")))) (build-system pyproject-build-system) (arguments (list #:phases #~(modify-phases %standard-phases (add-after 'unpack 'adjust-test-requirements (lambda _ (substitute* "requirements-test.txt" (("==") ">="))))))) (native-inputs (list python-cryptography python-flake8 python-future python-mock python-pytest python-pytest-cov python-pytest-forked python-pytest-randomly python-pytest-timeout python-pytest-xdist python-six python-setuptools python-wheel)) (home-page "https://github.com/httplib2/httplib2") (synopsis "Comprehensive HTTP client library") (description "A comprehensive HTTP client library supporting many features left out of other HTTP libraries.") (license license:expat))) (define-public python-cheroot (package (name "python-cheroot") (version "10.0.0") (source (origin (method url-fetch) (uri (pypi-uri "cheroot" version)) (sha256 (base32 "1w0ind0dza9j1py56y23344piqkpyfmcm060qfrnk6gggy3s3i2r")))) (build-system pyproject-build-system) (arguments (list #:test-flags #~(list "--cov=cheroot" ;; Tests are flaky in parallel invocation. ;; "--numprocesses=auto" "--doctest-modules" "--showlocals" ;; Disable test requiring networking. "-k" "not test_tls_client_auth") #:phases #~(modify-phases %standard-phases (replace 'check (lambda* (#:key tests? test-flags #:allow-other-keys) (when tests? (with-directory-excursion "/tmp" (apply invoke "pytest" "-v" (append test-flags (list #$output)))))))))) (propagated-inputs (list python-jaraco-functools python-more-itertools python-six)) (native-inputs (list python-cryptography python-jaraco-text python-portend python-pyopenssl python-pypytools python-pytest python-pytest-cov python-pytest-mock python-pytest-xdist python-requests python-requests-toolbelt python-requests-unixsocket python-setuptools-scm python-setuptools-scm-git-archive python-trustme)) (home-page "https://cheroot.cherrypy.dev") (synopsis "Highly-optimized, pure-python HTTP server") (description "Cheroot is a high-performance, pure-Python HTTP server.") (license license:bsd-3))) (define-public httpie (package (name "httpie") (version "3.2.2") (source (origin (method url-fetch) (uri (pypi-uri "httpie" version)) (sha256 (base32 "140w4mr0w7scpf4j5qm4h475vbwrgxzkdwyygwcmql1r1cgngywb")))) (build-system python-build-system) (arguments ;; The tests attempt to access external web servers, so we cannot run them. '(#:tests? #f)) (propagated-inputs (list python-charset-normalizer python-colorama python-defusedxml python-importlib-metadata python-multidict python-pip python-pygments python-requests python-requests-toolbelt python-rich python-setuptools)) (home-page "https://httpie.io") (synopsis "cURL-like tool for humans") (description "A command line HTTP client with an intuitive UI, JSON support, syntax highlighting, wget-like downloads, plugins, and more. It consists of a single http command designed for painless debugging and interaction with HTTP servers, RESTful APIs, and web services.") ;; This was fixed in 1.0.3. (properties `((lint-hidden-cve . ("CVE-2019-10751")))) (license license:bsd-3))) (define-public parfive (package (name "parfive") (version "2.1.0") (source (origin (method url-fetch) (uri (pypi-uri "parfive" version)) (sha256 (base32 "13nw2y7wjzj6w049av6ff4d0zxgbhkrgck0xyh676c114hcv8v6d")))) (build-system pyproject-build-system) (arguments (list ;; Disable tests requiring network access. #:test-flags #~(list "-k" (string-append "not test_ftp" " and not test_ftp_pasv_command" " and not test_ftp_http")))) (propagated-inputs (list python-aiofiles python-aioftp python-aiohttp python-tqdm)) (native-inputs (list python-pytest python-pytest-asyncio python-pytest-cov python-pytest-localserver python-pytest-socket python-setuptools python-setuptools-scm python-wheel)) (home-page "https://parfive.readthedocs.io/") (synopsis "HTTP and FTP parallel file downloader") (description "This package provides CLI tool and Python library @code{parallel} file downloader using asyncio. parfive can handle downloading multiple files in parallel as well as downloading each file in a number of chunks. asciicast demo of parfive parfive works by creating a downloader object, appending files to it and then running the download. parfive has a synchronous API, but uses asyncio to paralellise downloading the files.") (license license:expat))) (define-public python-html2text (package (name "python-html2text") (version "2020.1.16") (source (origin (method url-fetch) (uri (pypi-uri "html2text" version)) (sha256 (base32 "1fvv4z6dblii2wk1x82981ag8yhxbim1v2ksgywxsndh2s7335p2")))) (build-system python-build-system) (arguments '(#:phases (modify-phases %standard-phases (replace 'check (lambda _ (invoke "pytest" "test/")))))) (native-inputs (list python-pytest)) (home-page "https://github.com/Alir3z4/html2text") (synopsis "Convert HTML into plain text") (description "html2text takes HTML and converts it into plain ASCII text which is also valid markdown. html2text was originally written by Aaron Swartz.") (license license:gpl3+))) (define-public python-jose (package (name "python-jose") (version "3.3.0") (home-page "https://github.com/mpdavis/python-jose") (source (origin (method git-fetch) (uri (git-reference (url home-page) (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "18whsdpllg8574ma4r0qawkgw4nam6lsf63pi6761j38rvl84lg9")))) (build-system python-build-system) (arguments `(#:phases (modify-phases %standard-phases (replace 'check (lambda* (#:key tests? #:allow-other-keys) (if tests? (invoke "pytest" "-vv") (format #t "test suite not run~%")) #t))))) (native-inputs (list ;; All native inputs are for tests. python-pyasn1 python-pytest python-pytest-cov python-pytest-runner)) (propagated-inputs (list python-cryptography python-ecdsa python-rsa python-six)) (synopsis "JOSE implementation in Python") (description "The @dfn{JavaScript Object Signing and Encryption} (JOSE) technologies - JSON Web Signature (JWS), JSON Web Encryption (JWE), JSON Web Key (JWK), and JSON Web Algorithms (JWA) - collectively can be used to encrypt and/or sign content using a variety of algorithms.") (license license:expat))) (define-public python-jwcrypto (package (name "python-jwcrypto") (version "1.5.0") (source (origin (method url-fetch) (uri (pypi-uri "jwcrypto" version)) (sha256 (base32 "138bh6x1yy0qpk63bxa7mxnd97gfdm1fkpwm8wrdz3g3z0fca79c")))) (build-system pyproject-build-system) (propagated-inputs (list python-cryptography python-deprecated)) (native-inputs (list python-setuptools python-wheel)) (home-page "https://github.com/latchset/jwcrypto") (synopsis "Implementation of JOSE Web standards") (description "WCrypto is an implementation of the @dfn{Javascript Object Signing and Encryption} (JOSE) Web Standards.") (license license:lgpl3+))) (define-public python-pyscss (package (name "python-pyscss") (version "1.4.0") (source (origin (method git-fetch) ; no tests in PyPI release (uri (git-reference (url "https://github.com/Kronuz/pyScss") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "1vinddg8sbh3v9n1r1wmvjx6ydk8xp7scbvhb3csl4y9xz7vhk6g")))) (build-system pyproject-build-system) (native-inputs (list python-pytest python-pytest-cov python-setuptools python-wheel)) (inputs (list pcre)) (home-page "https://github.com/Kronuz/pyScss") (synopsis "Scss compiler for Python") (description "@code{pyScss} is a compiler for Sass, a superset language of CSS3 that adds programming capabilities and some other syntactic sugar.") (license license:expat))) (define-public python-jsonpickle (package (name "python-jsonpickle") (version "4.0.0") (source (origin (method url-fetch) (uri (pypi-uri "jsonpickle" version)) (sha256 (base32 "0dipys8p4hkqnp9nwkpysfv7mhws2hrr73wgn00pdmq4n990hrzw")))) (build-system pyproject-build-system) (arguments (list #:test-flags ;; Prevent running the flake8 and black pytest plugins, which only tests ;; style and frequently causes harmless failures. '(list "-o" "addopts=''" "tests") #:phases '(modify-phases %standard-phases (add-before 'check 'pre-check (lambda* (#:key inputs #:allow-other-keys) (setenv "TZ" "UTC") (setenv "TZDIR" (search-input-directory inputs "share/zoneinfo"))))))) (propagated-inputs (list python-importlib-metadata)) (native-inputs (list python-bson python-ecdsa python-feedparser python-pymongo python-pytest python-pytest-benchmark python-pytest-cov python-pytest-enabler python-setuptools python-setuptools-scm python-simplejson python-sqlalchemy python-ujson python-wheel tzdata-for-tests)) (home-page "https://jsonpickle.github.io/") (synopsis "Serialize object graphs into JSON") (description "This package provides a Python library for serializing any arbitrary object graph to and from JSON.") (license license:bsd-3))) (define-public python-mechanicalsoup (package (name "python-mechanicalsoup") (version "1.0.0") (source (origin (method url-fetch) (uri (pypi-uri "MechanicalSoup" version)) (sha256 (base32 "01sddjxy3rznh63hnl5lbv1hhk6xyiviwmkiw4x7v4ap35fb3lrp")))) (build-system python-build-system) (propagated-inputs (list python-beautifulsoup4 python-lxml python-requests python-six)) (native-inputs (list python-pytest-cov python-pytest-flake8 python-pytest-httpbin python-pytest-mock python-pytest-runner python-requests-mock python-setuptools python-wheel)) (home-page "https://mechanicalsoup.readthedocs.io/") (synopsis "Python library for automating website interaction") (description "MechanicalSoup is a Python library for automating interaction with websites. It automatically stores and sends cookies, follows redirects, and can follow links and submit forms. It doesn’t do JavaScript.") (license license:expat))) (define-public python-hyperframe (package (name "python-hyperframe") (version "6.0.1") (source (origin (method url-fetch) (uri (pypi-uri "hyperframe" version)) (sha256 (base32 "055951gyhnjqpa2al52rj34g8yrls9inyn56n7nfkj0x4d300ldf")))) (build-system python-build-system) (arguments `(#:phases (modify-phases %standard-phases (replace 'check (lambda* (#:key tests? inputs outputs #:allow-other-keys) (when tests? (add-installed-pythonpath inputs outputs) (invoke "pytest" "-vv" "test"))))))) (native-inputs (list python-pytest)) (home-page "https://github.com/python-hyper/hyperframe") (synopsis "HTTP/2 framing layer for Python") (description "This library contains the HTTP/2 framing code used in the hyper project. It provides a pure-Python codebase that is capable of decoding a binary stream into HTTP/2 frames.") (license license:expat))) (define-public python-hpack (package (name "python-hpack") (version "4.0.0") (source (origin ;; PyPI tarball is missing some files necessary for the tests. (method git-fetch) (uri (git-reference (url "https://github.com/python-hyper/hpack") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "11qdayvz5a8zlzdcdm37f2z1fgnl67pz6j8xj2dz5rfa5lds29yq")))) (build-system python-build-system) (arguments `(#:phases (modify-phases %standard-phases (replace 'check (lambda* (#:key tests? inputs outputs #:allow-other-keys) (when tests? (add-installed-pythonpath inputs outputs) (invoke "pytest" "-vv" "test"))))))) (native-inputs (list python-pytest)) (home-page "https://hyper.rtfd.org") (synopsis "Pure-Python HPACK header compression") (description "This module contains a pure-Python HTTP/2 header encoding (HPACK) logic for use in Python programs that implement HTTP/2.") (license license:expat))) (define-public python-h11 (package (name "python-h11") (version "0.14.0") (source (origin (method url-fetch) (uri (pypi-uri "h11" version)) (sha256 (base32 "17b97c56y31hi0n0x0cb5a87x4xr9jijf2y06pzj0977k6zgn6cg")))) (build-system pyproject-build-system) (native-inputs (list python-pytest python-setuptools python-wheel)) (home-page "https://github.com/python-hyper/h11") (synopsis "Pure-Python, bring-your-own-I/O implementation of HTTP/1.1") (description "This is a little HTTP/1.1 library written from scratch in Python, heavily inspired by hyper-h2. It's a bring-your-own-I/O library; h11 contains no IO code whatsoever. This means you can hook h11 up to your favorite network API, and that could be anything you want.") (license license:expat))) (define-public python-h2 (package (name "python-h2") (version "4.1.0") (source (origin (method url-fetch) (uri (pypi-uri "h2" version)) (sha256 (base32 "1fraip114fm1ha5w37pdc0sk8dn9pb0ck267zrwwpap7zc4clfm8")))) (build-system python-build-system) (arguments `(#:phases (modify-phases %standard-phases (replace 'check (lambda* (#:key tests? inputs outputs #:allow-other-keys) (when tests? (add-installed-pythonpath inputs outputs) (invoke "python" "-m" "pytest" "-vv" "test"))))))) (native-inputs (list python-hypothesis python-pytest)) (propagated-inputs (list python-hpack python-hyperframe)) (home-page "https://github.com/python-hyper/h2") (synopsis "HTTP/2 State-Machine based protocol implementation") (description "This module contains a pure-Python implementation of a HTTP/2 protocol stack. It does not provide a parsing layer, a network layer, or any rules about concurrency. Instead, it's a purely in-memory solution, defined in terms of data actions and HTTP/2 frames. This is one building block of a full Python HTTP implementation.") (license license:expat))) (define-public python-sockjs-tornado (package (name "python-sockjs-tornado") (version "1.0.6") (source (origin (method url-fetch) (uri (pypi-uri "sockjs-tornado" version)) (sha256 (base32 "15dgv6hw6c7h3m310alw1h6p5443lrm9pyqhcv2smc13fz1v04pc")))) (build-system python-build-system) (arguments `(;; There are no tests, and running the test phase requires missing ;; dependencies #:tests? #f)) (propagated-inputs (list python-tornado)) (home-page "https://github.com/mrjoes/sockjs-tornado/") (synopsis "SockJS Python server implementation on top of the Tornado framework") (description "SockJS-tornado provides the server-side counterpart to a SockJS client library, through the Tornado framework. SockJS provides a low-latency, full-duplex, cross-domain communication channel between a web browser and web server.") (license license:expat))) (define-public python-flask-assets (package (name "python-flask-assets") (version "2.0") (source (origin (method url-fetch) (uri (pypi-uri "Flask-Assets" version)) (sha256 (base32 "1hmqldxc7zciksmcl35jx0wbyrrxc7vk2a57mmmd8i07whsymz8x")))) (build-system python-build-system) (arguments ;; Tests require python-flask-script which is incompatible with Flask2. `(#:tests? #f)) (propagated-inputs (list python-flask python-webassets)) (home-page "https://github.com/miracle2k/flask-assets") (synopsis "Asset management for Flask") (description "This package integrates @code{webassets} with Flask, adding support for merging, minifying and compiling CSS and Javascript files.") (license license:bsd-2))) (define-public python-flask-babel (package (name "python-flask-babel") (version "2.0.0") (source (origin (method url-fetch) (uri (pypi-uri "Flask-Babel" version)) (sha256 (base32 "0z95v77vib5il8hphyh16n7i15a2gmc06i615vm346ifvdfg9ypr")))) (build-system python-build-system) (propagated-inputs (list python-flask python-babel python-jinja2 python-pytz)) (home-page "https://github.com/python-babel/flask-babel") (synopsis "Add i18n/l10n support to Flask applications") (description "This package implements internationalization and localization support for Flask. This is based on the Python babel module as well as pytz - both of which are installed automatically if you install this library.") (license license:bsd-3))) (define-public python-flask-cors (package (name "python-flask-cors") (version "3.0.10") (source (origin (method url-fetch) (uri (pypi-uri "Flask-Cors" version)) (sha256 (base32 "1pl16615fn1pc5n0vdrqlxm45mqsdjjxqv3gfkrs111v7wwkj25n")))) (build-system python-build-system) (native-inputs (list python-flask python-nose python-packaging)) (propagated-inputs (list python-six)) (home-page "https://flask-cors.readthedocs.io/en/latest/") (synopsis "Handle Cross-Origin Resource Sharing with Flask") (description "This package provides a Flask extension for handling @acronym{CORS,Cross Origin Resource Sharing}, making cross-origin AJAX possible.") (license license:expat))) (define-public python-flask-markdown (package (name "python-flask-markdown") (version "0.3") (source (origin (method url-fetch) (uri (pypi-uri "Flask-Markdown" version)) (sha256 (base32 "0l32ikv4f7va926jlq4f7gx0xid247bhlxl6bd9av5dk8ljz1hyq")))) (build-system python-build-system) (arguments '(#:tests? #f)) ; Tests seem to be incompatible with latest python (propagated-inputs (list python-markdown python-flask)) (native-inputs (list python-nose)) (home-page "https://github.com/dcolish/flask-markdown") (synopsis "Small extension to help with using Markdown in Flask") (description "Flask-Markdown supports several extensions for Markdown and integrates into Jinja2 by default.") (license license:bsd-3))) (define-public python-flask-misaka (package (name "python-flask-misaka") (version "1.0.0") (source (origin (method url-fetch) (uri (pypi-uri "Flask-Misaka" version)) (sha256 (base32 "12gm6hq3lvlj0ddw8p6lk5pky8jk3pw758ihffjl49shnnzc68zl")))) (build-system python-build-system) (native-inputs (list python-coverage python-mock)) (propagated-inputs (list python-flask python-misaka)) (home-page "https://github.com/singingwolfboy/flask-misaka/") (synopsis "Flask interface to Misaka, a Markdown parsing library") (description "This package provides an interface between the Flask web framework and the Misaka Markdown parser.") (license license:expat))) (define-public python-flask-session (package (name "python-flask-session") (version "0.4.0") (source (origin (method url-fetch) (uri (pypi-uri "Flask-Session" version)) (sha256 (base32 "0ihzlhdhss8f93p3njzva9rdm7kmhaakdlzz680wmi583wr59vf9")))) (build-system python-build-system) (arguments '(#:tests? #f)) ; Tests require the various storage backends to be present (propagated-inputs (list python-cachelib python-flask)) (home-page "https://github.com/fengsp/flask-session") (synopsis "Adds server-side session support to your Flask application") (description "Flask-Session is an extension for Flask that adds support for Server-side sessions, with a variety of different backends for session storage.") (license license:bsd-3))) (define-public python-html5lib (package (name "python-html5lib") (version "1.1") (source (origin (method url-fetch) (uri (pypi-uri "html5lib" version)) (sha256 (base32 "0vqlhk0hgbsfkh7ybmby93xhlx8dq6pr5blf356ka3z2c41b9rdj")))) (build-system python-build-system) (propagated-inputs (list python-six python-webencodings ;; Required by Calibre 5. python-chardet)) (arguments `(#:test-target "check")) (home-page "https://github.com/html5lib/html5lib-python") (synopsis "Python HTML parser based on the WHATWG HTML specification") (description "Html5lib is an HTML parser based on the WHATWG HTML specification and written in Python.") (license license:expat))) (define-public python-html5-parser (package (name "python-html5-parser") (version "0.4.10") (source (origin (method url-fetch) (uri (pypi-uri "html5-parser" version)) (sha256 (base32 "195wgxls3df7djry9cz3p2k9644l6bfd66fczbaw55fsq0c48agr")))) (build-system python-build-system) (native-inputs (list pkg-config)) (inputs (list libxml2)) (propagated-inputs (list python-lxml python-beautifulsoup4 python-chardet)) (home-page "https://html5-parser.readthedocs.io") (synopsis "Fast C-based HTML5 parsing for Python") (description "This package provides a fast implementation of the HTML5 parsing spec for Python. Parsing is done in C using a variant of the gumbo parser. The gumbo parse tree is then transformed into an lxml tree, also in C, yielding parse times that can be a thirtieth of the html5lib parse times.") ;; src/as-python-tree.[c|h] are licensed GPL3. The other files ;; indicate ASL2.0, including the LICENSE file for the whole project. (license (list license:asl2.0 license:gpl3)))) (define-public python-html5tagger (package (name "python-html5tagger") (version "1.3.0") (source (origin (method url-fetch) (uri (pypi-uri "html5tagger" version)) (sha256 (base32 "1acd1a4f66gi4plqnsml7cf33qp83mxsnmnqpdwkpj7597xkvyl4")))) (build-system pyproject-build-system) (native-inputs (list python-setuptools python-setuptools-scm python-wheel)) (home-page "https://github.com/sanic-org/html5tagger") (synopsis "Create HTML documents from Python") (description "@code{html5tagger} provides a simplified HTML5 syntax that can be written directly in Python without templates.") (license license:unlicense))) (define-public python-minio (package (name "python-minio") (version "7.1.9") (source (origin (method url-fetch) (uri (pypi-uri "minio" version)) (sha256 (base32 "02nh865xbf2glxvcy70ir6gkcwqxl119zryfc70q7w0yjvkg64d7")))) (build-system python-build-system) (arguments '(#:phases (modify-phases %standard-phases (add-before 'check 'disable-failing-tests (lambda _ ;; This test requires network access. (delete-file "tests/unit/credentials_test.py")))))) (native-inputs (list python-faker python-mock python-nose)) (propagated-inputs (list python-certifi python-dateutil python-pytz python-urllib3)) (home-page "https://github.com/minio/minio-py") (synopsis "Programmatically access Amazon S3 from Python") (description "This package provides a Python library for interacting with any Amazon S3 compatible object storage server.") (license license:asl2.0))) (define-public python-pycurl (package (name "python-pycurl") (version "7.45.4") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/pycurl/pycurl") (commit (string-append "REL_" (string-replace-substring version "." "_"))))) (file-name (git-file-name name version)) (sha256 (base32 "00cd1l0lsml0708hpv5k4qyhqfv0qphb0p317j9aci2wdspn1mpl")))) (build-system pyproject-build-system) (arguments '(#:test-flags ;; The test suite is not thread safe: ;; - some tests want to use the same port: address already in use ;; - some tests use signal.Signal, i.e. main-thread only (list "-k" (string-append ;; Disable hanginging tests "not test_multi_socket_select" ;; E assert None is not None ;; E+ where None = ;; <tests.multi_callback_test.MultiCallbackTest ;; testMethod=test_multi_socket_action>.timer_result " and not test_multi_socket_action" ;; OSError: tests/fake-curl/libcurl/with_gnutls.so: cannot ;; open shared object file: No such file or directory " and not test_libcurl_ssl_gnutls" ;; OSError: tests/fake-curl/libcurl/with_nss.so: cannot ;; open shared object file: No such file or directory " and not test_libcurl_ssl_nss" ;; OSError: tests/fake-curl/libcurl/with_openssl.so: cannot ;; open shared object file: No such file or directory " and not test_libcurl_ssl_openssl" ;; Probably due to an expired CA " and not test_request_without_certinfo" ;; "A libcurl function was given a bad argument" " and not test_proxy_tlsauth")) #:phases (modify-phases %standard-phases (add-before 'build 'configure-tls-backend (lambda _ ;; XXX: PycURL fails to automatically determine which ;; TLS backend to use when cURL is built with ;; --disable-static. See setup.py and ;; <https://github.com/pycurl/pycurl/pull/147>. (setenv "PYCURL_SSL_LIBRARY" "gnutls")))))) (native-inputs (list python-bottle python-flaky python-flask python-pytest python-setuptools python-wheel)) (inputs (list curl gnutls)) (home-page "http://pycurl.io/") (synopsis "Lightweight Python wrapper around libcurl") (description "Pycurl is a lightweight wrapper around libcurl. It provides high-speed transfers via libcurl and frequently outperforms alternatives.") ;; Per 'README.rst', this is dual-licensed: users can redistribute pycurl ;; under the terms of LGPLv2.1+ or Expat. (license (list license:lgpl2.1+ license:expat)))) (define-public python-webencodings (package (name "python-webencodings") (version "0.5.1") (source (origin (method url-fetch) (uri (pypi-uri "webencodings" version)) (sha256 (base32 "08qrgrc4hrximb2gqnl69g01s93rhf2842jfxdjljc1dbwj1qsmk")))) (build-system python-build-system) (arguments '(#:phases (modify-phases %standard-phases (replace 'check (lambda _ (invoke "py.test" "-v" "webencodings/tests.py") #t))))) (native-inputs (list python-pytest)) (home-page "https://github.com/SimonSapin/python-webencodings") (synopsis "Character encoding aliases for legacy web content") (description "In order to be compatible with legacy web content when interpreting something like @code{Content-Type: text/html; charset=latin1}, tools need to use a particular set of aliases for encoding labels as well as some overriding rules. For example, @code{US-ASCII} and @code{iso-8859-1} on the web are actually aliases for @code{windows-1252}, and a @code{UTF-8} or @code{UTF-16} BOM takes precedence over any other encoding declaration. The WHATWG @url{https://encoding.spec.whatwg.org/,Encoding} standard defines all such details so that implementations do not have to reverse-engineer each other. This module implements the Encoding standard and has encoding labels and BOM detection, but the actual implementation for encoders and decoders is Python’s.") (license license:bsd-3))) (define-public python-omnipath (package (name "python-omnipath") (version "1.0.8") (source (origin (method url-fetch) (uri (pypi-uri "omnipath" version)) (sha256 (base32 "0krr4wzfwa6fs550cs0lcqwjj90p1inyncj9kvzi4x4m26xbj89q")))) (build-system pyproject-build-system) (arguments (list #:test-flags ;; These require internet access '(list "-k" "not test_download_homologene and not test_complex_genes") #:phases '(modify-phases %standard-phases (add-after 'unpack 'relax (lambda _ (substitute* "requirements.txt" (("wrapt>=1.12.0") "wrapt>=1.11.0")))) (add-after 'unpack 'set-home (lambda _ (setenv "HOME" "/tmp")))))) (propagated-inputs (list python-attrs python-docrep python-inflect python-networkx python-packaging python-pandas python-requests python-tqdm python-typing-extensions python-urllib3 python-wrapt)) (native-inputs (list python-bump2version python-pytest python-pytest-mock python-pytest-socket python-requests-mock python-setuptools-scm python-tox python-setuptools python-wheel)) (home-page "https://omnipathdb.org/") (synopsis "Python client for the OmniPath web service") (description "This package provides a Python client for the OmniPath web service.") (license license:expat))) (define-public python-openai (package (name "python-openai") (version "0.28.1") (source (origin (method url-fetch) (uri (pypi-uri "openai" version)) (sha256 (base32 "1j6wsavgrxzh6ls8hp45nllz8f5l65a6vzk0lvhlqnx6579xmqab")))) (build-system pyproject-build-system) (arguments (list #:test-flags ;; These require internet access and an openai API key. '(list "--ignore=openai/tests/asyncio/test_endpoints.py" "--ignore=openai/tests/test_endpoints.py" "-k" "not test_requestor_cycle_sessions\ and not test_requestor_sets_request_id\ and not test_file_cli"))) (propagated-inputs (list python-aiohttp python-requests python-tqdm python-typing-extensions)) (native-inputs (list python-black python-pytest python-pytest-asyncio python-pytest-mock python-setuptools python-wheel)) (home-page "https://github.com/openai/openai-python") (synopsis "Python client library for the OpenAI API") (description "This package provides a Python client library for the OpenAI API.") (license license:expat))) (define-public python-openapi-schema-validator (package (name "python-openapi-schema-validator") (version "0.6.2") (source (origin (method git-fetch) ;no tests in pypi release (uri (git-reference (url "https://github.com/p1c2u/openapi-schema-validator") (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "0pgsm1x7lhc5ryj4l45ik8m5x9gqyi50dkflaiqqr4fnl0bsbx09")))) (build-system pyproject-build-system) (arguments (list #:test-flags ;; This one returns 5 instead of 4 elements '(list "-k" "not test_array_prefixitems_invalid") #:phases #~(modify-phases %standard-phases (add-after 'unpack 'remove-coverage-pytest-options (lambda _ (substitute* "pyproject.toml" (("^--cov.*") ""))))))) (native-inputs (list python-poetry-core python-pytest)) (propagated-inputs (list python-isodate python-jsonschema python-rfc3339-validator python-strict-rfc3339)) (home-page "https://github.com/p1c2u/openapi-schema-validator") (synopsis "OpenAPI schema validation library for Python") (description "Openapi-schema-validator is a Python library that validates a schema against: @itemize @item OpenAPI Schema Specification v3.0 which is an extended subset of the JSON Schema Specification Wright Draft 00. @item OpenAPI Schema Specification v3.1 which is an extended superset of the JSON Schema Specification Draft 2020-12. @end itemize") (license license:bsd-3))) (define-public python-openapi-spec-validator (package (name "python-openapi-spec-validator") (version "0.7.1") (source (origin (method git-fetch) ;no tests in pypi release (uri (git-reference (url "https://github.com/p1c2u/openapi-spec-validator") (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "0s5yd4dbr6knwd2g1g4v2931k14n1lm80l11n2ija18yfis8yisz")))) (build-system pyproject-build-system) (arguments (list ;; These tests attempt to fetch resources from the Internet #:test-flags '(list "--ignore-glob=tests/integration/validation/**" "-k" "not example") #:phases #~(modify-phases %standard-phases ;; Requirement.parse('jsonschema-specifications<2024.0.0,>=2023.5.2'), ;; {'openapi-schema-validator'}) (delete 'sanity-check) (add-after 'unpack 'remove-coverage-pytest-options (lambda _ (substitute* "pyproject.toml" (("^--cov.*") ""))))))) (native-inputs (list python-poetry-core python-pytest)) (propagated-inputs (list python-jsonschema python-jsonschema-path python-lazy-object-proxy python-openapi-schema-validator python-pyyaml python-requests python-setuptools)) (home-page "https://github.com/p1c2u/openapi-spec-validator") (synopsis "OpenAPI spec validator") (description "OpenAPI Spec Validator is a Python library that validates an OpenAPI specification against the OpenAPI 2.0 (also known as Swagger), OpenAPI 3.0 and OpenAPI 3.1 specifications. The validator aims to check for full compliance with the specification.") (license license:asl2.0))) (define-public python-openapi-core (package (name "python-openapi-core") (version "0.19.1") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/p1c2u/openapi-core") (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "1fdz01wssgqh9dzc7qddl0fms2zivhalghzk63ynblss2r91yc8s")))) (build-system pyproject-build-system) (arguments (list #:test-flags '(list "tests/unit" ;; Ignore Pytest configuration in setup.cfg that adds ;; unwanted flake8 and coverage options. "-c" "/dev/null" "-k" (string-append ;; Type mismatches "not TestFlaskOpenAPIRequest" " and not TestFlaskOpenAPIResponse")))) (native-inputs (list python-django python-falcon python-flask python-mock python-poetry-core python-pypa-build python-pytest python-responses)) (propagated-inputs (list python-attrs python-aiohttp python-dictpath python-isodate python-jsonschema python-lazy-object-proxy python-more-itertools python-openapi-schema-validator python-openapi-spec-validator python-parse python-six python-werkzeug)) (home-page "https://github.com/p1c2u/openapi-core") (synopsis "OpenAPI core library") (description "Openapi-core is a Python library that adds client-side and server-side support for the OpenAPI Specification v3. It has features such as: @itemize @item Validation of requests and responses @item Schema casting and unmarshalling @item Media type and parameters deserialization @item Security providers (API keys, Cookie, Basic and Bearer HTTP authentications) @item Custom deserializers and formats @item Integration with libraries and frameworks. @end itemize") (license license:bsd-3))) (define-public python-openid (package (name "python-openid") (version "3.2.0") (source (origin (method url-fetch) (uri (pypi-uri "python3-openid" version)) (sha256 (base32 "1bxf9a3ny1js422j962zfzl4a9dhj192pvai05whn7j0iy9gdyrk")))) (build-system python-build-system) (arguments `(#:phases (modify-phases %standard-phases (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? (invoke "coverage" "run" "-m" "unittest" "openid.test.test_suite"))))))) (propagated-inputs (list python-defusedxml)) (native-inputs (list python-coverage python-psycopg2 python-django)) (home-page "https://github.com/necaris/python3-openid") (synopsis "OpenID support for servers and consumers") (description "This library provides OpenID authentication for Python, both for clients and servers.") (license license:asl2.0))) (define-public python-cssutils (package (name "python-cssutils") (version "2.6.0") (source (origin (method url-fetch) (uri (pypi-uri "cssutils" version)) (sha256 (base32 "13l1y0xr3fgbl95w3pinb5av5dqk2ip39pih6vgrz47c3hyd5p7p")))) (build-system pyproject-build-system) (arguments (list #:phases #~(modify-phases %standard-phases (replace 'check (lambda _ (invoke "pytest" "-vv" "-k" ;; disable tests requiring network (string-append "not test_parseUrl " "and not encutils " "and not website.logging"))))))) (native-inputs (list python-pytest python-jaraco-test python-setuptools python-wheel)) (home-page "https://github.com/jaraco/cssutils") (synopsis "CSS Cascading Style Sheets library for Python") (description "Cssutils is a Python package for parsing and building CSS Cascading Style Sheets. Currently it provides a DOM only and no rendering options.") (license license:lgpl3+))) (define-public python-css-parser (package (inherit python-cssutils) (name "python-css-parser") (version "1.0.7") (source (origin (method url-fetch) (uri (pypi-uri "css-parser" version ".tar.gz")) (sha256 (base32 "1ldv9s3an4pgk7b5x6z07rw9b5fdrasdldnf22829pb26b39dq15")))) (home-page "https://github.com/ebook-utils/css-parser") (synopsis "Fork of cssutils modified for parsing ebooks") (description "Css-parser is a Python package for parsing and building CSS Cascading Style Sheets. Currently it provides a DOM only and no rendering options. It's a fork of cssutils 1.0.2, updated and modified for parsing ebooks, due to cssutils not receiving updates as of 1.0.2.") (license license:lgpl3+))) (define-public python-cssselect (package (name "python-cssselect") (version "1.2.0") (source (origin ;; The PyPI release does not contain tests. (method git-fetch) (uri (git-reference (url "https://github.com/scrapy/cssselect") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "1x4nrvb1p1byi1whmspik7lbh303akdlh762dayfxam3hycsh5kk")))) (build-system pyproject-build-system) (native-inputs (list python-lxml python-pytest python-setuptools python-wheel)) (home-page "https://github.com/scrapy/cssselect") (synopsis "CSS3 selector parser and translator to XPath 1.0") (description "Cssselect ia a Python module that parses CSS3 Selectors and translates them to XPath 1.0 expressions. Such expressions can be used in lxml or another XPath engine to find the matching elements in an XML or HTML document.") (license license:bsd-3))) (define-public python-databricks-cli (package (name "python-databricks-cli") (version "0.17.0") (home-page "https://github.com/databricks/databricks-cli") (source (origin (method git-fetch) (uri (git-reference (url home-page) (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "1qwbxnx64kw7lrzlyx3hfbnjxpc19cqvvj0gcrkqpyjsgd08vja0")))) (build-system python-build-system) (arguments '(#:phases (modify-phases %standard-phases (replace 'check (lambda _ (invoke "pytest" "tests" "-vv")))))) (native-inputs ;; For tests. (list python-decorator python-mock python-pytest python-requests-mock)) (propagated-inputs (list python-click python-oauthlib python-pyjwt python-requests python-six python-tabulate)) (synopsis "Command line interface for Databricks") (description "The Databricks Command Line Interface is a tool which provides an easy to use interface to the Databricks platform. The CLI is built on top of the Databricks REST APIs.") (license license:asl2.0))) (define-public python-openid-cla (package (name "python-openid-cla") (version "1.2") (source (origin (method url-fetch) (uri (pypi-uri "python-openid-cla" version)) (sha256 (base32 "102hy2qisvjxp5s0v9lvwqi4f2dk0dhns40vjgn008yxc7k0h3cr")))) (build-system python-build-system) (arguments '(#:tests? #f)) ; No tests. (propagated-inputs (list python-openid python-six)) (home-page "https://github.com/puiterwijk/python-openid-cla/") (synopsis "Implementation of the OpenID CLA extension for python-openid") (description "@code{openid-cla} is an implementation of the OpenID contributor license agreement extension for python-openid.") (license license:bsd-3))) (define-public python-openid-teams (package (name "python-openid-teams") (version "1.1") (source (origin (method url-fetch) (uri (pypi-uri "python-openid-teams" version)) (sha256 (base32 "05zrh78alav24rxkbqlpbad6d3x2nljk6z6j7kflxf3vdqa7w969")))) (build-system python-build-system) (arguments '(#:tests? #f)) ; No tests. (propagated-inputs (list python-openid python-six)) (home-page "https://github.com/puiterwijk/python-openid-teams/") (synopsis "Implementation of the OpenID teams extension for python-openid") (description "@code{openid-teams} is an implementation of the OpenID teams extension for python-openid.") (license license:bsd-3))) (define-public python-priority (package (name "python-priority") (version "1.3.0") (source (origin (method url-fetch) (uri (pypi-uri "priority" version)) (sha256 (base32 "1gpzn9k9zgks0iw5wdmad9b4dry8haiz2sbp6gycpjkzdld9dhbb")))) (build-system python-build-system) (arguments `(#:phases (modify-phases %standard-phases (replace 'check (lambda* (#:key inputs outputs #:allow-other-keys) (add-installed-pythonpath inputs outputs) (invoke "pytest" "-vv" "test" "-k" ;; This test exceeded the Hypothesis deadline. "not test_period_of_repetition")))))) (native-inputs (list python-hypothesis python-pytest python-pytest-cov python-pytest-xdist)) (home-page "https://python-hyper.org/projects/priority/en/latest/") (synopsis "Pure-Python implementation of the HTTP/2 priority tree") (description "Priority is a pure-Python implementation of the priority logic for HTTP/2, set out in RFC 7540 Section 5.3 (Stream Priority).") (license license:expat))) (define-public python-wsproto (package (name "python-wsproto") (version "1.2.0") (source (origin (method url-fetch) (uri (pypi-uri "wsproto" version)) (sha256 (base32 "0rahm1j9danv1l6i6as80acwv16ycihxkhrvwjiqh9drxhk5ymmd")))) (build-system pyproject-build-system) (native-inputs (list python-pytest python-setuptools python-wheel)) (propagated-inputs (list python-h11)) (home-page "https://github.com/python-hyper/wsproto/") (synopsis "WebSockets state-machine based protocol implementation") (description "@code{wsproto} is a pure-Python implementation of a WebSocket protocol stack. It's written from the ground up to be embeddable in whatever program you choose to use, ensuring that you can communicate via WebSockets, as defined in RFC6455, regardless of your programming paradigm.") (license license:expat))) (define-public hypercorn (package (name "hypercorn") (version "0.17.3") (source (origin (method git-fetch) ;PyPI does not have tests (uri (git-reference (url "https://github.com/pgjones/hypercorn") (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "13v6cy4frvnddv9zak06a4lmwxp121hjyfrlapxfmb7m3i8qrm02")))) (build-system pyproject-build-system) ;; Propagate because Hypercorn also exposes functionality over a module. (propagated-inputs (list python-exceptiongroup python-h11 python-taskgroup python-h2 python-priority python-tomli python-wsproto)) (native-inputs (list python-httpx python-hypothesis python-poetry-core python-pytest python-pytest-asyncio python-pytest-cov python-pytest-trio python-trio)) (home-page "https://gitlab.com/pgjones/hypercorn/") (synopsis "ASGI Server based on Hyper libraries") (description "Hypercorn is an ASGI web server based on the sans-io hyper, h11, h2, and wsproto libraries and inspired by Gunicorn. It supports HTTP/1, HTTP/2, WebSockets (over HTTP/1 and HTTP/2), ASGI/2, and ASGI/3 specifications. It can utilise asyncio, uvloop, or trio worker types.") (license license:expat))) (define-public python-hypercorn (deprecated-package "python-hypercorn" hypercorn)) (define-public python-querystring-parser (package (name "python-querystring-parser") (version "1.2.4") (source (origin (method url-fetch) (uri (pypi-uri "querystring_parser" version)) (sha256 (base32 "0qlar8a0wa003hm2z6wcpb625r6vjj0a70rsni9h8lz0zwfcwkv4")))) (build-system python-build-system) (arguments `(#:phases (modify-phases %standard-phases (replace 'check (lambda _ ;; XXX FIXME: This test is broken with Python 3.7: ;; https://github.com/bernii/querystring-parser/issues/35 (substitute* "querystring_parser/tests.py" (("self\\.assertEqual\\(self\\.knownValuesNormalized, result\\)") "True")) (invoke "python" "querystring_parser/tests.py")))))) (propagated-inputs (list python-six)) (home-page "https://github.com/bernii/querystring-parser") (synopsis "QueryString parser that correctly handles nested dictionaries") (description "This package provides a query string parser for Python and Django projects that correctly creates nested dictionaries from sent form/querystring data.") (license license:expat))) (define-public python-tornado (package (name "python-tornado") (version "5.1.1") (source (origin (method url-fetch) (uri (pypi-uri "tornado" version)) (sha256 (base32 "02clqk2116jbnq8lnaqmdw3p52nqrd9ib59r4xz2ll43fpcmhlaf")))) (build-system python-build-system) (arguments (list #:phases '(modify-phases %standard-phases (add-after 'unpack 'fix-collections (lambda _ (substitute* "tornado/httputil.py" (("collections.MutableMapping") "collections.abc.MutableMapping")))) (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? (substitute* "tornado/test/runtests.py" (("\"error\", category=DeprecationWarning") "\"ignore\", category=DeprecationWarning") ;; Disable tests that use SSL. (("'tornado.test.simple_httpclient_test',") "") (("'tornado.test.iostream_test',") "") (("'tornado.test.httpserver_test',") "") ;; Some timeouts are triggered in these two modules (("'tornado.test.queues_test',") "") (("'tornado.test.locks_test',") "")) ;; Skip all network tests (setenv "NO_NETWORK" "1") ;; Skip timing-relevant tests (setenv "TRAVIS" "1") (invoke "python" "-m" "tornado.test.runtests" "--verbose=yes"))))))) (native-inputs (list python-certifi)) (home-page "https://www.tornadoweb.org/") (synopsis "Python web framework and asynchronous networking library") (description "Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed. By using non-blocking network I/O, Tornado can scale to tens of thousands of open connections, making it ideal for long polling, WebSockets, and other applications that require a long-lived connection to each user.") (license license:asl2.0))) (define-public python-tornado-6 (package (name "python-tornado") (version "6.4.2") (source (origin (method url-fetch) (uri (pypi-uri "tornado" version)) (sha256 (base32 "02v2mlvr58xg0l0gh08nswl53z73wkf23sziggypk63ffjsdbflj")))) (build-system pyproject-build-system) (arguments (list #:test-flags ;; AttributeError: 'TestIOStreamWebMixin' object has no attribute 'io_loop' #~(list "--ignore=tornado/test/iostream_test.py"))) (native-inputs (list python-certifi python-pytest python-setuptools python-wheel)) (home-page "https://www.tornadoweb.org/") (synopsis "Python web framework and asynchronous networking library") (description "Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed. By using non-blocking network I/O, Tornado can scale to tens of thousands of open connections, making it ideal for long polling, WebSockets, and other applications that require a long-lived connection to each user.") (license license:asl2.0))) (define-public python-tornado-http-auth (package (name "python-tornado-http-auth") (version "1.1.1") (source (origin (method url-fetch) (uri (pypi-uri "tornado-http-auth" version)) (sha256 (base32 "0hyc5f0a09i5yb99pk4bxpg6w9ichbrb5cv7hc9hff7rxd8w0v0x")))) (build-system python-build-system) (propagated-inputs (list python-tornado)) (home-page "https://github.com/gvalkov/tornado-http-auth") (synopsis "Digest and basic authentication module for Tornado") (description "Provides support for adding authentication to services using the Tornado web framework, either via the basic or digest authentication schemes.") (license license:asl2.0))) (define-public python-terminado (package (name "python-terminado") (version "0.10.0") (source (origin (method url-fetch) (uri (pypi-uri "terminado" version)) (sha256 (base32 "1smvra3sc9sg64w49kfn5yhagshq3x55839748ck5dvxvk4hgza6")))) (build-system python-build-system) (propagated-inputs (list python-tornado-6 python-ptyprocess)) (native-inputs (list python-pytest)) (arguments `(#:phases (modify-phases %standard-phases (replace 'check (lambda _ (invoke "pytest" "-vv")))))) (home-page "https://github.com/jupyter/terminado") (synopsis "Terminals served to term.js using Tornado websockets") (description "This package provides a Tornado websocket backend for the term.js Javascript terminal emulator library.") (license license:bsd-2))) (define-public python-wsgi-intercept (package (name "python-wsgi-intercept") (version "1.2.2") (source (origin (method url-fetch) (uri (pypi-uri "wsgi_intercept" version)) (sha256 (base32 "0kjj2v2dvmnpdd5h5gk9rzz0f54rhjb0yiz3zg65bmp65slfw65d")))) (build-system python-build-system) (propagated-inputs (list python-six)) (native-inputs (list python-pytest python-httplib2 python-requests python-urllib3)) (synopsis "Puts a WSGI application in place of a real URI for testing") (description "Wsgi_intercept installs a WSGI application in place of a real URI for testing. Testing a WSGI application normally involves starting a server at a local host and port, then pointing your test code to that address. Instead, this library lets you intercept calls to any specific host/port combination and redirect them into a WSGI application importable by your test program. Thus, you can avoid spawning multiple processes or threads to test your Web app.") (home-page "https://github.com/cdent/wsgi-intercept") (license license:expat))) (define-public python-webob (package (name "python-webob") (version "1.8.6") (source (origin (method url-fetch) (uri (pypi-uri "WebOb" version)) (sha256 (base32 "026i3z99nr3px75isa9mbnky5i7rffiv4d124h5kxfjjsxz92fma")))) (build-system python-build-system) (native-inputs (list python-nose)) (home-page "https://webob.org/") (synopsis "WSGI request and response object") (description "WebOb provides wrappers around the WSGI request environment, and an object to help create WSGI responses.") (license license:expat))) (define-public python-zc-lockfile (package (name "python-zc-lockfile") (version "3.0.post1") (source (origin (method url-fetch) (uri (pypi-uri "zc.lockfile" version)) (sha256 (base32 "1v41irj7azaag3f14xyviv3l8mvap74v5p3q274k68vakrnyxcmd")))) (build-system python-build-system) (arguments '(#:phases (modify-phases %standard-phases (replace 'check (lambda* (#:key tests? #:allow-other-keys) (if tests? (invoke "zope-testrunner" "--test-path=src") (format #t "test suite not run~%"))))))) (native-inputs (list python-zope-testing python-zope-testrunner)) (home-page "https://github.com/zopefoundation/zc.lockfile") (synopsis "Interprocess locks using lock files") (description "This package provides an implementation of interprocess locks using lock files. These locks can also be used to mediate access to other files.") (license license:zpl2.1))) (define-public python-zconfig (package (name "python-zconfig") (version "4.0") (source (origin (method url-fetch) (uri (pypi-uri "ZConfig" version)) (sha256 (base32 "0mh13p38vq7ip4zkvaplzr8w0mqrmmqiyb5y663d165slvxl5mpq")))) (build-system python-build-system) (arguments '(#:phases (modify-phases %standard-phases (replace 'check (lambda* (#:key tests? #:allow-other-keys) (if tests? (begin ;; This test assumes we still have setup.py in the ;; directory from which we import zconfig, which ;; does not work after installing the package. (delete-file-recursively "src/ZConfig/tests/test_readme.py") (invoke "zope-testrunner" "-vv" "--test-path=src" "--all")) (format #t "test suite not run~%"))))))) (native-inputs (list python-docutils python-manuel python-zope-exceptions python-zope-testrunner)) (home-page "https://github.com/zopefoundation/ZConfig/") (synopsis "Structured configuration library intended for general use") (description "@code{zconfig} is a configuration library intended for general use. It supports a hierarchical schema-driven configuration model that allows a schema to specify data conversion routines written in Python. Its model is very different from the model supported by the @code{configparser} module found in Python's standard library, and is more suitable to configuration-intensive applications.") (license license:zpl2.1))) (define-public python-zodb (package (name "python-zodb") (version "5.8.1") (source (origin (method url-fetch) (uri (pypi-uri "ZODB" version)) (sha256 (base32 "1pv4w8mnx6j4xvkcjbkh99pv8ljby7g9f7zjq7zhdmk06sykmiy6")))) (build-system pyproject-build-system) (arguments '(#:phases (modify-phases %standard-phases (replace 'check (lambda* (#:key tests? #:allow-other-keys) (if tests? (begin ;; This test does not work after installing the ;; package, since it expects the ZODB source code ;; to reside in the src/ directory. (delete-file-recursively "src/ZODB/tests/testdocumentation.py") (invoke "zope-testrunner" "-vv" "--test-path=src" "--all")) (format #t "test suite not run~%"))))))) (propagated-inputs (list python-btrees python-persistent python-zconfig python-six python-transaction python-zc-lockfile python-zodbpickle python-zope-interface)) (native-inputs (list python-manuel python-zope-testing python-zope-testrunner)) (home-page "http://zodb-docs.readthedocs.io") (synopsis "Object-oriented database for Python") (description "@code{ZODB} provides an object-oriented and @acronym{ACID, Atomicity Consistency Isolation Durability} compliant database for Python with a high degree of transparency. @code{ZODB} is an object-oriented database, not an object-relational mapping. This comes with several advantaged: @itemize @item no separate language for database operations @item very little impact on your code to make objects persistent @item no database mapper that partially hides the database. @item almost no seam between code and database. @end itemize") (license license:zpl2.1))) (define-public python-zodbpickle (package (name "python-zodbpickle") (version "3.2") (source (origin (method url-fetch) (uri (pypi-uri "zodbpickle" version)) (sha256 (base32 "035bjrksl4h92mvjkx6id4gjcpc1k4mbci8ryjl6l9mki7ihx77b")))) (build-system pyproject-build-system) (arguments '(#:phases (modify-phases %standard-phases (replace 'check (lambda* (#:key tests? #:allow-other-keys) (if tests? (invoke "zope-testrunner" "-vv" "--test-path=src" "--all") (format #t "test suite not run~%"))))))) (native-inputs (list python-zope-testrunner)) (home-page "https://github.com/zopefoundation/zodbpickle") (synopsis "Uniform pickling interface for @code{zodb}") (description "This package is a fork of the @code{pickle} module (and the supporting C extension) from both Python 3.2 and Python 3.3. The fork adds support for the @code{noload} operations used by @code{zodb}.") (license (list license:psfl license:zpl2.1)))) (define-public python-zope-event (package (name "python-zope-event") (version "4.4") (source (origin (method url-fetch) (uri (pypi-uri "zope.event" version)) (sha256 (base32 "1ksbc726av9xacml6jhcfyn828hlhb9xlddpx6fcvnlvmpmpvhk9")))) (build-system python-build-system) (home-page "https://pypi.org/project/zope.event/") (synopsis "Event publishing system for Python") (description "Zope.event provides an event publishing API, intended for use by applications which are unaware of any subscribers to their events. It is a simple event-dispatching system on which more sophisticated event dispatching systems can be built.") (license license:zpl2.1))) (define-public python-zope-interface (package (name "python-zope-interface") (version "5.1.0") (source (origin (method url-fetch) (uri (pypi-uri "zope.interface" version)) (sha256 (base32 "03nrl6b8cb600dnnh46y149awvrm0gxyqgwq5hdw3lvys8mw9r20")))) (build-system python-build-system) (arguments '(#:tests? #f)) ; test suite can't find python-zope-testing (native-inputs (list python-coverage python-nose python-zope-event python-zope-testing)) (home-page "https://github.com/zopefoundation/zope.interface") (synopsis "Python implementation of the \"design by contract\" methodology") (description "Zope.interface provides an implementation of \"object interfaces\" for Python. Interfaces are a mechanism for labeling objects as conforming to a given API or contract.") (license license:zpl2.1))) (define-public python-zope-exceptions (package (name "python-zope-exceptions") (version "4.6") (source (origin (method url-fetch) (uri (pypi-uri "zope.exceptions" version)) (sha256 (base32 "1kc3hql2i35ys5alkj9csiaz2s9bx0rff585vnrrgvavqsj297b1")))) (build-system python-build-system) (arguments '(#:phases (modify-phases %standard-phases (replace 'check (lambda* (#:key tests? #:allow-other-keys) (if tests? (invoke "zope-testrunner" "--test-path=src") (format #t "test suite not run~%"))))))) (native-inputs `(("python-zope-testrunner" ,python-zope-testrunner-bootstrap))) (propagated-inputs (list python-zope-interface)) (home-page "https://pypi.org/project/zope.exceptions/") (synopsis "Zope exceptions") (description "Zope.exceptions provides general-purpose exception types that have uses outside of the Zope framework.") (license license:zpl2.1))) (define (python-zope-bootstrap-package orig) (package (inherit orig) (name (string-append (package-name orig) "-bootstrap")) (arguments (if (null? (package-arguments orig)) `(#:tests? #f #:phases (modify-phases %standard-phases (delete 'sanity-check))) (substitute-keyword-arguments (package-arguments orig) ((#:tests? _ #f) #f) ((#:phases phases '%standard-phases) `(modify-phases ,phases (delete 'sanity-check)))))) (propagated-inputs `()) (native-inputs `()) (properties `((hidden? . #t))))) (define-public python-zope-exceptions-bootstrap (python-zope-bootstrap-package python-zope-exceptions)) (define-public python-zope-testing (package (name "python-zope-testing") (version "4.7") (source (origin (method url-fetch) (uri (pypi-uri "zope.testing" version)) (sha256 (base32 "1sh3c3i0m8n8fnhqiry0bk3rr356i56ry7calmn57s1pvv8yhsyn")))) (build-system python-build-system) (home-page "https://pypi.org/project/zope.testing/") (synopsis "Zope testing helpers") (description "Zope.testing provides a number of testing utilities for HTML forms, HTTP servers, regular expressions, and more.") (license license:zpl2.1))) (define-public python-zope-testrunner (package (name "python-zope-testrunner") (version "5.2") (source (origin (method url-fetch) (uri (pypi-uri "zope.testrunner" version)) (sha256 (base32 "0jyyf1dcz156q95x2y7yw2v420q2xn3cff0c5aci7hmdmcbn0gc7")))) (build-system python-build-system) (arguments '(#:tests? #f ;FIXME: Tests can't find zope.interface. #:phases (modify-phases %standard-phases (add-after 'unpack 'remove-problematic-test (lambda _ ;; This test contains invalid syntax, which breaks bytecode ;; compilation. For simplicity just remove it. (delete-file "src/zope/testrunner/tests/testrunner-ex/sample2/badsyntax.py")))))) (native-inputs (list python-zope-testing)) (propagated-inputs (list python-six python-zope-exceptions python-zope-interface)) (home-page "https://pypi.org/project/zope.testrunner/") (synopsis "Zope testrunner script") (description "Zope.testrunner provides a script for running Python tests.") (license license:zpl2.1))) (define-public python-zope-testrunner-bootstrap (package (inherit (python-zope-bootstrap-package python-zope-testrunner)) (propagated-inputs `(("python-six" ,python-six) ("python-zope-exceptions" ,python-zope-exceptions-bootstrap))) (properties `((hidden? . #t))))) (define-public python-zope-i18nmessageid (package (name "python-zope-i18nmessageid") (version "5.1.1") (source (origin (method url-fetch) (uri (pypi-uri "zope.i18nmessageid" version)) (sha256 (base32 "14mx62khys82p2gmmf3m40x4jmvcz3rndvl6qik2n2qfp13n7ds7")))) (build-system pyproject-build-system) (native-inputs (list python-coverage python-setuptools python-wheel python-zope-testrunner)) (propagated-inputs (list python-six)) (home-page "https://pypi.org/project/zope.i18nmessageid/") (synopsis "Message identifiers for internationalization") (description "Zope.i18nmessageid provides facilities for declaring internationalized messages within program source text.") (license license:zpl2.1))) (define-public python-zope-schema (package (name "python-zope-schema") (version "7.0.1") (source (origin (method url-fetch) (uri (pypi-uri "zope.schema" version)) (sha256 (base32 "1fgvx7nim9plxnyiq6vmah1dji7ba5290fws1i0lwk9m0g5xpm7a")))) (build-system python-build-system) (arguments `(#:phases (modify-phases %standard-phases (replace 'check (lambda* (#:key inputs outputs tests? #:allow-other-keys) (add-installed-pythonpath inputs outputs) (if tests? (invoke "zope-testrunner" "--test-path=src") #t)))))) (propagated-inputs (list python-zope-event python-zope-interface)) (native-inputs (list python-zope-i18nmessageid python-zope-testing python-zope-testrunner)) (home-page "https://pypi.org/project/zope.schema/") (synopsis "Zope data schemas") (description "Zope.scheme provides extensions to zope.interface for defining data schemas.") (license license:zpl2.1))) (define-public python-zope-sqlalchemy (package (name "python-zope-sqlalchemy") (version "1.6") (source (origin (method url-fetch) (uri (pypi-uri "zope.sqlalchemy" version)) (sha256 (base32 "1azm2awl2ra10xl6wps3yvy14jk2rpzvsyfsb9cncm97aydbwlww")))) (build-system python-build-system) (propagated-inputs (list python-sqlalchemy python-transaction python-zope-interface)) (native-inputs (list python-zope-testing)) (home-page "https://github.com/zopefoundation/zope.sqlalchemy") (synopsis "Minimal SQLAlchemy transaction integration for Zope") (description "The aim of this package is to unify the plethora of existing packages integrating SQLAlchemy with Zope's transaction management. As such, it only provides a data manager and makes no attempt to define a @i{zopeish} way to configure engines.") (license license:zpl2.1))) (define-public python-zope-configuration (package (name "python-zope-configuration") (version "4.4.0") (source (origin (method url-fetch) (uri (pypi-uri "zope.configuration" version)) (sha256 (base32 "0g6vrl7y27z9cj5xyrww9xlzk4npj55mgmlrcd9d2nj08jn2pw79")))) (build-system python-build-system) (native-inputs (list python-manuel python-zope-testing python-zope-testrunner)) (propagated-inputs (list python-zope-i18nmessageid python-zope-interface python-zope-schema)) (home-page "https://pypi.org/project/zope.configuration/") (synopsis "Zope Configuration Markup Language") (description "Zope.configuration implements ZCML, the Zope Configuration Markup Language.") (license license:zpl2.1))) (define-public python-zope-configuration-bootstrap (python-zope-bootstrap-package python-zope-configuration)) (define-public python-zope-copy (package (name "python-zope-copy") (version "4.2") (source (origin (method url-fetch) (uri (pypi-uri "zope.copy" version)) (sha256 (base32 "06m75434krl57n6p73c2qj55k5i3fixg887j8ss01ih6zw4rvfs7")))) (build-system python-build-system) (arguments '(#:phases (modify-phases %standard-phases (replace 'check (lambda _ (invoke "zope-testrunner" "--test-path=src" "\\[]")))))) (propagated-inputs (list python-zope-interface)) (native-inputs `(("python-zope-component" ,python-zope-component-bootstrap) ("python-zope-location" ,python-zope-location-bootstrap) ("python-zope-testing" ,python-zope-testing) ("python-zope-testrunner" ,python-zope-testrunner))) (home-page "https://github.com/zopefoundation/zope.copy") (synopsis "Pluggable object copying mechanism") (description "This package provides a pluggable mechanism for copying persistent objects.") (license license:zpl2.1))) (define-public python-zope-proxy (package (name "python-zope-proxy") (version "4.3.5") (source (origin (method url-fetch) (uri (pypi-uri "zope.proxy" version)) (sha256 (base32 "14h7nyfbl5vpfk0rbviy4ygdfx0yx5kncvg6jpbdb0dhwna0ssm6")))) (build-system python-build-system) (native-inputs (list python-zope-security-bootstrap python-zope-testrunner)) (propagated-inputs (list python-zope-interface)) (home-page "https://pypi.org/project/zope.proxy/") (synopsis "Generic, transparent proxies") (description "Zope.proxy provides generic, transparent proxies for Python. Proxies are special objects which serve as mostly-transparent wrappers around another object, intervening in the apparent behavior of the wrapped object only when necessary to apply the policy (e.g., access checking, location brokering, etc.) for which the proxy is responsible.") (license license:zpl2.1))) (define-public python-zope-proxy-bootstrap (python-zope-bootstrap-package python-zope-proxy)) (define-public python-zope-hookable (package (name "python-zope-hookable") (version "5.0.1") (source (origin (method url-fetch) (uri (pypi-uri "zope.hookable" version)) (sha256 (base32 "0hc82lfr7bk53nvbxvjkibkarngyrzgfk2i6bg8wshl0ly0pdl19")))) (build-system python-build-system) (native-inputs (list python-coverage python-zope-testing)) (home-page "https://github.com/zopefoundation/zope.hookable") (synopsis "Zope hookable") (description "This package supports the efficient creation of hookable objects, which are callable objects that are meant to be optionally replaced. The idea is that you create a function that does some default thing and make i hookable. Later, someone can modify what it does by calling its sethook method and changing its implementation. All users of the function, including those that imported it, will see the change.") (license license:zpl2.1))) (define-public python-zope-location (package (name "python-zope-location") (version "4.2") (source (origin (method url-fetch) (uri (pypi-uri "zope.location" version)) (sha256 (base32 "1b40pzl8v00d583d3gsxv1qjdw2dhghlgkbgxl3m07d5r3izj857")))) (build-system python-build-system) (arguments '(#:tests? #f)) ; FIXME: Tests can't find zope.interface. (native-inputs (list python-zope-testrunner)) (propagated-inputs (list python-zope-interface python-zope-proxy python-zope-schema)) (home-page "https://pypi.org/project/zope.location/") (synopsis "Zope location library") (description "Zope.location implements the concept of \"locations\" in Zope3, which are are special objects that have a structural location.") (license license:zpl2.1))) (define-public python-zope-location-bootstrap (python-zope-bootstrap-package python-zope-location)) (define-public python-zope-security (package (name "python-zope-security") (version "5.1.1") (source (origin (method url-fetch) (uri (pypi-uri "zope.security" version)) (sha256 (base32 "11lfw67cigscfax9c5j63xcvz2qcj724zx5fcdqyc94am2glim0h")))) (build-system python-build-system) (propagated-inputs (list python-zope-component python-zope-i18nmessageid python-zope-interface python-zope-location python-zope-proxy python-zope-schema)) (native-inputs (list python-btrees python-zope-component-bootstrap python-zope-configuration-bootstrap python-zope-location-bootstrap python-zope-testing python-zope-testrunner)) (home-page "https://pypi.org/project/zope.security/") (synopsis "Zope security framework") (description "Zope.security provides a generic mechanism to implement security policies on Python objects.") (license license:zpl2.1))) (define-public python-zope-security-bootstrap (package (inherit (python-zope-bootstrap-package python-zope-security)) (propagated-inputs `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid) ("python-zope-interface" ,python-zope-interface) ("python-zope-proxy" ,python-zope-proxy-bootstrap) ("python-zope-schema" ,python-zope-schema))))) (define-public python-zope-component (package (name "python-zope-component") (version "4.6.2") (source (origin (method url-fetch) (uri (pypi-uri "zope.component" version)) (sha256 (base32 "14iwp95hh6q5dj4k9h1iw75cbp89bs27nany4dinyglb44c8jqli")))) (build-system python-build-system) (arguments '(#:phases (modify-phases %standard-phases (replace 'check (lambda* (#:key tests? #:allow-other-keys) (if tests? (invoke "python" "setup.py" "test") (format #t "test suite not run~%"))))))) (native-inputs `(("python-persistent" ,python-persistent) ("python-zope-configuration" ,python-zope-configuration-bootstrap) ("python-zope-i18nmessageid" ,python-zope-i18nmessageid) ("python-zope-location" ,python-zope-location-bootstrap) ("python-zope-proxy" ,python-zope-proxy-bootstrap) ("python-zope-security" ,python-zope-security-bootstrap) ("python-zope-testing" ,python-zope-testing) ("python-zope-testrunner" ,python-zope-testrunner))) (propagated-inputs (list python-zope-deferredimport python-zope-deprecation python-zope-event python-zope-hookable python-zope-interface)) (home-page "https://github.com/zopefoundation/zope.component") (synopsis "Zope Component Architecture") (description "Zope.component represents the core of the Zope Component Architecture. Together with the zope.interface package, it provides facilities for defining, registering and looking up components.") (license license:zpl2.1))) (define-public python-zope-component-bootstrap (python-zope-bootstrap-package python-zope-component)) (define-public python-zope-deferredimport (package (name "python-zope-deferredimport") (version "4.3.1") (source (origin (method url-fetch) (uri (pypi-uri "zope.deferredimport" version)) (sha256 (base32 "1q89v54dwniiqypjbwywwdfjdr4kdkqlyqsgrpplgvsygdg39cjp")))) (build-system python-build-system) (propagated-inputs (list python-zope-proxy)) (native-inputs (list python-zope-testrunner)) (home-page "https://github.com/zopefoundation/zope.deferredimport") (synopsis "Defer imports until used by code") (description "Often, especially for package modules, you want to import names for convenience, but not actually perform the imports until necessary. The @code{zope.deferredimport} package provided facilities for defining names in modules that will be imported from somewhere else when used. You can also cause deprecation warnings to be issued when a variable is used.") (license license:zpl2.1))) (define-public python-ndg-httpsclient (package (name "python-ndg-httpsclient") (version "0.5.1") (source (origin (method url-fetch) (uri (pypi-uri "ndg_httpsclient" version)) (sha256 (base32 "0412b7i1s4vj7lz9r72nmb28h9syd4q2x89bdirkkc3a6z8awbyp")))) (build-system python-build-system) (arguments '(;; The tests appear to require networking. #:tests? #f)) (propagated-inputs (list python-pyasn1 python-pyopenssl)) (synopsis "HTTPS support for Python's httplib and urllib2") (description "This is a HTTPS client implementation for httplib and urllib2 based on PyOpenSSL. PyOpenSSL provides a more fully-featured SSL implementation over the default provided with Python and, importantly, enables full verification of the SSL peer.") (home-page "https://github.com/cedadev/ndg_httpsclient/") (license license:bsd-3))) (define-public python-nh3 (package (name "python-nh3") (version "0.2.17") (source (origin (method url-fetch) (uri (pypi-uri "nh3" version)) (sha256 (base32 "0a7hrca5bbbrz20cbqy16n8vaxf4v2q1r9zv9vjlbmn334d79l20")))) (build-system cargo-build-system) (arguments (list #:imported-modules `(,@%cargo-build-system-modules ,@%pyproject-build-system-modules) #:modules '((guix build cargo-build-system) ((guix build pyproject-build-system) #:prefix py:) (guix build utils)) #:phases #~(modify-phases %standard-phases (replace 'build (assoc-ref py:%standard-phases 'build)) (replace 'install (assoc-ref py:%standard-phases 'install)) ;; cargo-build-system's %standard-phases has 'check before 'install. (delete 'check) (add-after 'install 'check (lambda* (#:key tests? inputs outputs #:allow-other-keys) (when tests? (py:add-installed-pythonpath inputs outputs) (invoke "pytest" "-vv" "tests"))))) #:cargo-inputs `(("rust-ammonia" ,rust-ammonia-4) ("rust-pyo3" ,rust-pyo3-0.21)) #:install-source? #false)) (native-inputs (list maturin python-pytest python-wrapper)) (home-page "https://nh3.readthedocs.io") (synopsis "Python bindings to Ammonia HTML sanitization library") (description "This package provides Python bindings to Ammonia HTML sanitizer Rust crate.") (license license:expat))) (define-public python-noiseprotocol (package (name "python-noiseprotocol") (version "0.3.1") (source (origin (method url-fetch) (uri (pypi-uri "noiseprotocol" version)) (sha256 (base32 "0ifnj0mpbqsfqba9n12vf5yzxj4qf2gxql3ry43qyshgnrqsi4mh")))) (build-system pyproject-build-system) (propagated-inputs (list python-cryptography)) (native-inputs (list python-setuptools python-wheel)) (home-page "https://github.com/plizonczyk/noiseprotocol") (synopsis "Implementation of Noise Protocol Framework") (description "This package provides an implementation of Noise Protocol Framework.") (license license:expat))) (define-public python-websocket-client (package (name "python-websocket-client") (version "1.8.0") (source (origin (method url-fetch) (uri (pypi-uri "websocket_client" version)) (sha256 (base32 "1nn3qi5g59j55wfy2z02j6lq2cm281fq0wi406b2yqys8jgxyf9j")))) (build-system pyproject-build-system) (arguments (list #:test-flags ;; This test requires networking. '(list "-k" "not testConnect"))) (native-inputs (list python-pysocks python-pytest python-setuptools python-websockets python-wheel)) (home-page "https://github.com/websocket-client/websocket-client") (synopsis "WebSocket client for Python") (description "The Websocket-client module provides the low level APIs for WebSocket usage in Python programs.") (license license:lgpl2.1+))) (define-public python-websocket-client-0.59 (package (inherit python-websocket-client) (version "0.59.0") (source (origin (method url-fetch) (uri (pypi-uri "websocket-client" version)) (sha256 (base32 "0p0cz2mdissq7iw1n7jrmsfir0jfmgs1dvnpnrx477ffx9hbsxnk")))))) (define-public python-purl (package (name "python-purl") (version "1.5") (source (origin (method url-fetch) (uri (pypi-uri "purl" version)) (sha256 (base32 "15ibnz1xrh5msmn04j0nr00sz4n7jwx6cwd6zlx99kkz3vpin53m")))) (build-system python-build-system) (propagated-inputs (list python-six)) (home-page "https://github.com/codeinthehole/purl") (synopsis "Python package for URL manipulation") (description "Purl is a Python package for handling URLs.") (license license:expat))) (define-public python-apiron (package (name "python-apiron") (version "5.1.0") (source (origin (method url-fetch) (uri (pypi-uri "apiron" version)) (sha256 (base32 "1qwbqn47sf0aqznj1snbv37v8ijx476qqkjf5l9pac7xjkxsr8qk")))) (build-system pyproject-build-system) (arguments (list #:test-flags '(list "-k" "not test_call"))) (propagated-inputs (list python-requests)) (native-inputs (list python-pytest python-pytest-cov)) (home-page "https://github.com/ithaka/apiron") (synopsis "Python wrapper for interacting with RESTful APIs") (description "@code{apiron} provides a declarative, structured configuration of services and endpoints with a unified interface for interacting with RESTful APIs.") (license license:expat))) (define-public python-beren (package (name "python-beren") (version "0.7.0") (source (origin (method url-fetch) (uri (pypi-uri "beren" version)) (sha256 (base32 "1v3mdwfqsyza892zvs124ym9w1bkng1j56b7l4dwfjir3723xcgf")))) (build-system python-build-system) (arguments ;; The test tries to open a connection to a remote server. `(#:tests? #f)) (propagated-inputs (list python-apiron)) (home-page "https://github.com/teffalump/beren") (synopsis "REST client for Orthanc DICOM servers") (description "@code{beren} provides a REST client for Orthanc, a DICOM server.") (license license:gpl3+))) (define-public python-requests (package (name "python-requests") (version "2.31.0") (source (origin (method url-fetch) (uri (pypi-uri "requests" version)) (sha256 (base32 "1qfidaynsrci4wymrw3srz8v1zy7xxpcna8sxpm91mwqixsmlb4l")))) (build-system pyproject-build-system) (arguments (list #:test-flags ;; These require internet access '(list "--ignore=tests/test_requests.py" "-k" (string-append "not test_use_proxy_from_environment" " and not requests.sessions.Session" " and not requests.models.PreparedRequest" " and not requests.api.request") "tests/"))) (propagated-inputs (list python-certifi python-charset-normalizer python-idna python-urllib3)) (native-inputs (list python-pip python-pytest python-pytest-mock python-setuptools python-wheel)) (home-page "https://requests.readthedocs.io/") (synopsis "Python HTTP library") (description "Requests is a Python HTTP client library. It aims to be easier to use than Python’s urllib2 library.") (license license:asl2.0))) (define-public python-requests-next (package (name "python-requests") (version "2.32.3") (source (origin (method url-fetch) (uri (pypi-uri "requests" version)) (sha256 (base32 "0q5742pnibwy74169kacin3dmqg9jzmzk7qab5aq5caffcbm8djm")))) (build-system python-build-system) (native-inputs (list nss-certs-for-test)) (propagated-inputs (list python-certifi python-charset-normalizer python-idna python-urllib3)) (arguments ;; FIXME: Some tests require network access. '(#:tests? #f)) (home-page "http://python-requests.org/") (synopsis "Python HTTP library") (description "Requests is a Python HTTP client library. It aims to be easier to use than Python’s urllib2 library.") (license license:asl2.0))) (define-public python-requests-kerberos (package (name "python-requests-kerberos") (version "0.14.0") ;; No tests in the PyPI tarball. (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/requests/requests-kerberos") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "0s30pcnlir3j2jmf7yh065f294cf3x0x5i3ldskn8mm0a3657mv3")))) (build-system pyproject-build-system) (propagated-inputs (list python-cryptography python-pyspnego python-requests)) (native-inputs (list python-pytest python-pytest-mock python-setuptools python-wheel)) (home-page "https://github.com/requests/requests-kerberos") (synopsis "Kerberos authentication handler for python-requests") (description "This package provides a Kerberos authentication handler for python-requests.") (license license:isc))) (define-public python-requests-unixsocket (package (name "python-requests-unixsocket") (version "0.2.0") (source (origin (method url-fetch) (uri (pypi-uri "requests-unixsocket" version)) (sha256 (base32 "1sn12y4fw1qki5gxy9wg45gmdrxhrndwfndfjxhpiky3mwh1lp4y")))) (build-system pyproject-build-system) (arguments (list #:test-flags ;; TypeError: HTTPConnection.request() got an unexpected keyword ;; argument 'chunked' #~(list "-k" (string-append "not test_unix_domain_adapter_ok" " and not test_unix_domain_adapter_url_with_query_params" " and not test_unix_domain_adapter_connection_error" " and not test_unix_domain_adapter_monkeypatch")) #:phases #~(modify-phases %standard-phases (add-before 'check 'skip-pep8 (lambda _ (substitute* "pytest.ini" (("--pep8") ""))))))) (native-inputs (list python-apipkg python-appdirs python-execnet python-packaging python-pep8 python-py python-pyparsing python-pytest python-pytest-cache python-pytest-pep8 python-setuptools python-six python-waitress python-wheel)) (propagated-inputs (list python-pbr python-requests python-urllib3)) (home-page "https://github.com/msabramo/requests-unixsocket") (synopsis "Talk HTTP via a UNIX domain socket") (description "This Python package lets you use the @code{requests} library to talk HTTP via a UNIX domain socket.") (license license:asl2.0))) (define-public python-requests_ntlm (package (name "python-requests_ntlm") (version "1.2.0") (source (origin (method url-fetch) (uri (pypi-uri "requests_ntlm" version)) (sha256 (base32 "1a0np7lk8ma1plv1s4aw5q9h2z3aljprkl9qsfypqcaf0zsqbhik")))) (build-system python-build-system) (propagated-inputs (list python-cryptography python-pyspnego python-requests)) (home-page "https://github.com/requests/requests-ntlm") (synopsis "NTLM authentication support for Requests") (description "This package allows for HTTP NTLM authentication using the requests library.") (license license:isc))) (define-public python-requests-mock (package (name "python-requests-mock") (version "1.8.0") (source (origin (method url-fetch) (uri (pypi-uri "requests-mock" version)) (sha256 (base32 "09nj8fmyj7xz2mgwyvbw0fl9zybmx2d3qd2hf529vvjc9s24d3z6")))) (build-system python-build-system) (propagated-inputs (list python-requests python-six)) (native-inputs (list python-pbr python-discover python-docutils python-fixtures python-mock python-purl python-pytest python-sphinx python-testrepository)) (home-page "https://requests-mock.readthedocs.org/") (synopsis "Mock out responses from the requests package") (description "This module provides a building block to stub out the HTTP requests portions of your testing code.") (license license:asl2.0))) (define-public python-requests-toolbelt (package (name "python-requests-toolbelt") (version "1.0.0") (source (origin (method url-fetch) (uri (pypi-uri "requests-toolbelt" version)) (sha256 (base32 "1ijvip427ki177ycrblcn1mfgsq7ixzpvqqfvidjn0a7s2is10bn")))) (build-system pyproject-build-system) (arguments (list #:test-flags ;; Requiring networking or fail due not valid certs: AttributeError: ;; 'MockHTTPResponse' object has no attribute 'close' #~(list "-k" (string-append "not test_dump_all" " and not test_dump_response" " and not test_prepared_request_override_base" " and not test_prepared_request_with_base" " and not test_request_override_base" " and not test_request_with_base")))) (native-inputs (list python-betamax python-mock python-pyopenssl python-pytest python-setuptools python-trustme python-wheel)) (propagated-inputs (list python-requests)) (synopsis "Extensions to python-requests") (description "This is a toolbelt of useful classes and functions to be used with python-requests.") (home-page "https://github.com/requests/toolbelt/") (license license:asl2.0))) (define-public python-requests-ftp (package (name "python-requests-ftp") (version "0.3.1") (source (origin (method url-fetch) (uri (pypi-uri "requests-ftp" version)) (sha256 (base32 "0yh5v21v36dsjsgv4y9dx4mmz35741l5jf6pbq9w19d8rfsww13m")))) (build-system python-build-system) (propagated-inputs (list python-requests)) (home-page "https://github.com/Lukasa/requests-ftp") (synopsis "FTP Transport Adapter for Requests") (description "Requests-FTP is an implementation of a simple FTP transport adapter for use with the Requests library.") (license license:asl2.0))) (define-public python-aioftp (package (name "python-aioftp") (version "0.22.3") (source (origin (method url-fetch) (uri (pypi-uri "aioftp" version)) (sha256 (base32 "0w621mg956m9rn7v39jpwi4gpnpl90pprwl29cp640dahqqv38ms")))) (build-system pyproject-build-system) (native-inputs (list python-async-timeout python-pytest python-pytest-asyncio python-pytest-cov python-setuptools python-trustme python-wheel)) (propagated-inputs (list python-siosocks)) (home-page "https://aioftp.readthedocs.io/") (synopsis "FTP client/server for asyncio in Python") (description "FTP client and server for asyncio (Python 3) Library implementing FTP protocol, both client and server for Python asyncio module. Supported commands as client: USER, PASS, ACCT, PWD, CWD, CDUP, MKD, RMD, MLSD, MLST, RNFR, RNTO, DELE, STOR, APPE, RETR, TYPE, PASV, ABOR, QUIT, REST, LIST (as fallback). Supported commands as server: USER, PASS, QUIT, PWD, CWD, CDUP, MKD, RMD, MLSD, LIST (non-standard), MLST, RNFR, RNTO, DELE, STOR, RETR, TYPE (\"I\" and \"A\"), PASV, ABOR, APPE, REST.") (license license:asl2.0))) (define-public python-msal (package (name "python-msal") (version "1.22.0") (home-page "https://github.com/AzureAD/microsoft-authentication-library-for-python") (source (origin (method git-fetch) ;; Pypi does not have tests. (uri (git-reference (url home-page) (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "1pgpf8fa0mdga69hr6i66mq2a2vyn8dlcf4fdzqmbgw2il9b37q6")))) (build-system python-build-system) (arguments ;; Tests (all?) rely on network access and only some can be disabled by ;; setting the environment variable TRAVIS_TAG. (list #:tests? #f)) (native-inputs (list python-mock)) (propagated-inputs (list python-cryptography python-pyjwt python-requests)) (synopsis "Microsoft Authentication Library (MSAL) for Python") (description "The Microsoft Authentication Library for Python enables applications to integrate with the Microsoft identity platform. It allows you to sign in users or apps with Microsoft identities (Azure AD, Microsoft Accounts and Azure AD B2C accounts) and obtain tokens to call Microsoft APIs such as Microsoft Graph or your own APIs registered with the Microsoft identity platform. It is built using industry standard OAuth2 and OpenID Connect protocols.") (license license:expat))) (define-public oauth2ms (let ((commit "a1ef0cabfdea57e9309095954b90134604e21c08") (revision "0")) (package (name "oauth2ms") (version (git-version "0.0.0" revision commit)) (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/harishkrupo/oauth2ms") (commit commit))) (file-name (git-file-name name version)) (sha256 (base32 "0dqi6n4npdrvb42r672n4sl1jl8z5lsk554fwiiihpj0faa9dx64")))) (build-system copy-build-system) (arguments (list #:install-plan #~`(("oauth2ms" "bin/oauth2ms") ("." #$(string-append "share/doc/" name "-" version "/") #:include-regexp ("\\.org$"))) #:phases #~(modify-phases %standard-phases (add-after 'install 'wrap-pythonpath (lambda* (#:key inputs outputs #:allow-other-keys) (let ((path (getenv "GUIX_PYTHONPATH"))) (wrap-program (string-append #$output "/bin/oauth2ms") `("GUIX_PYTHONPATH" ":" prefix (,path))))))))) (inputs (list bash-minimal python python-gnupg python-msal python-pyxdg)) (home-page "https://github.com/harishkrupo/oauth2ms") (synopsis "XOAUTH2 compatible Microsoft Office 365 token fetcher") (description "Oauth2ms can be used to fetch OAuth 2.0 tokens from the Microsoft Identity endpoint. Additionally, it can encode the token in the XOAUTH2 format to be used as authentication in IMAP mail servers.") (license license:asl2.0)))) (define-public python-oauthlib (package (name "python-oauthlib") (version "3.1.0") (source (origin (method url-fetch) (uri (pypi-uri "oauthlib" version)) (sha256 (base32 "12gqnabwck30gdlpwm6af3s28qm9p2yc7b1w8s4fk9ncbz1irr5y")))) (build-system python-build-system) (arguments `(#:phases (modify-phases %standard-phases (replace 'check (lambda _ (invoke "pytest" "-vv")))))) (native-inputs (list python-pytest python-pytest-cov python-mock)) (propagated-inputs (list python-cryptography python-pyjwt python-blinker)) (home-page "https://github.com/oauthlib/oauthlib") (synopsis "OAuth implementation for Python") (description "Oauthlib is a generic, spec-compliant, thorough implementation of the OAuth request-signing logic.") (license license:bsd-3))) (define-public python-rauth (package (name "python-rauth") (version "0.7.3") (source (origin (method url-fetch) (uri (pypi-uri "rauth" version)) (sha256 (base32 "02kv8w8l98ky223avyq7vw7x1f2ya9chrm59r77ylq45qb0xnk2j")))) (build-system python-build-system) (arguments `(#:test-target "check")) (propagated-inputs (list python-requests)) (home-page "https://github.com/litl/rauth") (synopsis "Python library for OAuth 1.0/a, 2.0, and Ofly") (description "Rauth is a Python library for OAuth 1.0/a, 2.0, and Ofly. It also provides service wrappers for convenient connection initialization and authenticated session objects providing things like keep-alive.") (license license:expat))) (define-public python-unalix (package (name "python-unalix") (version "0.9") (source (origin ;; There's only a wheel on PyPI. (method git-fetch) (uri (git-reference (url "https://github.com/AmanoTeam/Unalix") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "0h8wc1axv26h753a8brc6dccqndx005c2bhr09gwg5c1hj9zsfml")))) (build-system python-build-system) (native-inputs (list python-pytest)) (arguments '(#:phases (modify-phases %standard-phases (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? (invoke "pytest"))))))) (home-page "https://pypi.org/project/Unalix/") (synopsis "Python library for removing tracking fields from URLs") (description "Unalix is a library written in Python implementing the specification used by the @url{https://github.com/ClearURLs/Addon, ClearURLs} addon for removing tracking fields from URLs.") (license license:lgpl3+))) (define-public python-urllib3 (package (name "python-urllib3") (version "2.2.1") (source (origin (method url-fetch) (uri (pypi-uri "urllib3" version)) (sha256 (base32 "06fg8jj64lgxr2jrizzrsdvaf1avpg5qmhvnswhfbf8sqrv0hmyh")))) (build-system pyproject-build-system) (arguments `(#:tests? #f)) (native-inputs (list python-hatchling)) (propagated-inputs (append ;; These 5 inputs are used to build urrlib3[secure] (list python-certifi) (if (member (%current-system) (package-transitive-supported-systems python-cryptography)) (list python-cryptography) '()) (list python-idna) (if (member (%current-system) (package-transitive-supported-systems python-pyopenssl)) (list python-pyopenssl) '()) (list python-pysocks))) (home-page "https://urllib3.readthedocs.io/") (synopsis "HTTP library with thread-safe connection pooling") (description "Urllib3 supports features left out of urllib and urllib2 libraries. It can reuse the same socket connection for multiple requests, it can POST files, supports url redirection and retries, and also gzip and deflate decoding.") (license license:expat))) (define-public python-urllib3-next (package (name "python-urllib3") (version "1.26.17") (source (origin (method url-fetch) (uri (pypi-uri "urllib3" version)) (sha256 (base32 "08fzhaf77kbjj5abpl9xag6fpfxkdp1k5s7sqd3ayacdq91a5mi4")))) (build-system python-build-system) (arguments `(#:tests? #f)) (propagated-inputs (append ;; These 5 inputs are used to build urrlib3[secure] (list python-certifi) (if (member (%current-system) (package-transitive-supported-systems python-cryptography)) (list python-cryptography) '()) (list python-idna) (if (member (%current-system) (package-transitive-supported-systems python-pyopenssl)) (list python-pyopenssl) '()) (list python-pysocks))) (home-page "https://urllib3.readthedocs.io/") (synopsis "HTTP library with thread-safe connection pooling") (description "Urllib3 supports features left out of urllib and urllib2 libraries. It can reuse the same socket connection for multiple requests, it can POST files, supports url redirection and retries, and also gzip and deflate decoding.") (license license:expat))) (define-public python-awscrt (package (name "python-awscrt") (version "0.23.0") (source (origin (method url-fetch) (uri (pypi-uri "awscrt" version)) (sha256 (base32 "0a669xxfmgw3g6xpcnm64pbmlrbxw5wf3jcrivixscl2glapdxgx")))) (build-system pyproject-build-system) (arguments (list #:phases #~(modify-phases %standard-phases (add-after 'unpack 'disable-broken-tests (lambda _ ;; Disable broken tests. These tests fail because the ;; certificate bundle at the default location does not exist. (substitute* "test/test_auth.py" (("def test_default_provider") "def _test_default_provider")) (substitute* "test/test_http_client.py" (("def test_h2_client") "def _test_h2_client")) (substitute* "test/test_s3.py" (("def test_sanity") "def _test_sanity") (("def test_sanity_secure") "def _test_sanity_secure") (("def test_wait_shutdown") "def _test_wait_shutdown")))) (add-after 'unpack 'override-cert-bundle-location (lambda* (#:key inputs #:allow-other-keys) (let ((bundle (search-input-file inputs "/etc/ssl/certs/ca-certificates.crt"))) (setenv "SSL_CERT_FILE" bundle) (substitute* "awscrt/io.py" (("( +)opt = TlsContextOptions\\(\\)" m indent) (string-append m "\n" indent "import os\n" indent "\ opt.override_default_trust_store_from_path(None, os.getenv('SSL_CERT_FILE')) if os.getenv('SSL_CERT_FILE') else None\n"))) (substitute* "test/appexit_http.py" (("( +)tls_ctx_opt = awscrt.io.TlsContextOptions.*" m indent) (string-append m indent "tls_ctx_opt.override_default_trust_store_from_path(None, '" bundle "')\n"))) (substitute* "test/test_io.py" (("( +)opt = TlsContextOptions\\(\\).*" m indent) (string-append m indent "opt.override_default_trust_store_from_path(None, '" bundle "')\n")))))) (add-after 'unpack 'use-system-libraries (lambda _ (setenv "AWS_CRT_BUILD_USE_SYSTEM_LIBCRYPTO" "1"))) (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? (invoke "python3" "-m" "unittest" "discover" "--verbose"))))))) (inputs (list openssl)) (native-inputs (list cmake-minimal python-setuptools python-wheel ;; For tests only nss-certs-for-test python-boto3 python-websockets)) (home-page "https://github.com/awslabs/aws-crt-python") (synopsis "Common runtime for AWS Python projects") (description "This package provides a common runtime for AWS Python projects.") (license license:asl2.0))) (define-public python-awscrt-for-awscli (package (inherit python-awscrt) (version "0.22.0") (source (origin (method url-fetch) (uri (pypi-uri "awscrt" version)) (sha256 (base32 "0w6pw42jbznrxh92cd97p96dg2nz698mcbfy7md3zw18jfsb18jc")))))) (define-public awscli (package ;; Note: updating awscli typically requires updating botocore as well. (name "awscli") (version "1.36.0") (source (origin (method git-fetch) ; no tests in PyPI release (uri (git-reference (url "https://github.com/aws/aws-cli") (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "1iwivc5kj2h5619rvbncrh4649lalxj7bxndzvrjw398vv7cixp5")))) (build-system pyproject-build-system) (arguments (list #:test-flags #~(list "--numprocesses" (number->string (parallel-job-count)) ;; Tests require networking. "--ignore" "tests/integration" ;; It strugles to set PYTHONPATH. ;; ;; AssertionError: 'argument operation: Invalid choice, valid ;; choices are:' not found in ' "-k" (string-append "not test_subscribe_to_shard_removed" ;; Tests fail during mocking. " and not test_expected_runtime_dependencies" " and not test_expected_unbounded_runtime_dependencies" " and not test_no_groff_or_mandoc_exists" " and not test_start_conversation_removed")) #:phases #~(modify-phases %standard-phases (add-after 'unpack 'fix-reference-to-groff (lambda _ ;; XXX: Consider to use wrap-program instead, it tries to parse ;; the PATH. (substitute* "awscli/help.py" (("if self._exists_on_path\\('groff'\\):") "if 'groff':") (("raise ExecutableNotFoundError\\('groff'\\)") "") (("cmdline = \\['groff'") (format #f "cmdline = ['~a/bin/groff'" #$(this-package-input "groff-minimal")))))) (add-before 'check 'set-environment (lambda _ ;; PermissionError: [Errno 13] Permission denied: ;; '/homeless-shelter' (setenv "HOME" "/tmp")))))) (native-inputs (list python-pytest python-pytest-xdist python-setuptools python-wheel)) (inputs (list groff-minimal python-botocore python-colorama python-docutils-0.15 python-pyyaml python-rsa python-s3transfer)) (home-page "https://aws.amazon.com/cli/") (synopsis "Command line client for AWS") (description "AWS CLI provides a unified command line interface to the Amazon Web Services (AWS) API.") (license license:asl2.0))) (define-public awscli-2 (package (inherit awscli) (name "awscli") (version "2.20.0") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/aws/aws-cli") (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "0hyr9gmcfk7nzkgs0v6wgkh8k15dyhknqzfymbc9a9sa2dblc40q")))) (build-system pyproject-build-system) (arguments (list #:phases #~(modify-phases %standard-phases (add-after 'unpack 'ignore-deprecations (lambda _ (substitute* "pyproject.toml" (("\"error::") "\"ignore::")))) (add-after 'unpack 'remove-pep517 (lambda _ (rename-file "backends/pep517.py" "backends/dummypep517.py") (substitute* "pyproject.toml" (("pep517") "dummypep517")) (setenv "PYTHONPATH" (string-append (getcwd) ":" (getcwd) "/backends:" (getenv "GUIX_PYTHONPATH"))))) (add-after 'unpack 'fix-reference-to-groff (lambda* (#:key inputs #:allow-other-keys) (substitute* "awscli/help.py" (("if self._exists_on_path\\('groff'\\):") "if True:") (("cmdline = \\['groff'") (string-append "cmdline = ['" (search-input-file inputs "bin/groff") "'"))))) (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? (substitute* "scripts/ci/run-tests" (("--numprocesses=auto --dist=loadfile --maxprocesses=4") "")) ;; For an unknown reason pytest receives SIGTERM and no tests ;; are run.. #; (invoke "python" "scripts/ci/run-tests"))))))) (inputs (list groff python-awscrt-for-awscli python-colorama python-botocore python-cryptography python-dateutil python-docutils python-jmespath python-prompt-toolkit python-ruamel.yaml-0.16 python-ruamel.yaml.clib python-urllib3)) (native-inputs (list python-distro python-flit python-pytest python-wheel)))) ;; This is not an official release of awscli version 2, so it should not be ;; named awscli. (define-public awscliv2 (package (inherit awscli) (name "awscliv2") (version "2.3.1") (source (origin (method url-fetch) (uri (pypi-uri name version)) (sha256 (base32 "1bpp6kmb75qdhgzsx69ki04345bfkzwnmg84y5x6nyfpph2g3fsz")))) (arguments ;; FIXME: The 'pypi' release does not contain tests. '(#:tests? #f)) (inputs (list python-importlib-resources python-executor)) (native-inputs (list python-poetry-core python-pytest)))) (define-public python-wsgiproxy2 (package (name "python-wsgiproxy2") (version "0.4.6") (source (origin (method url-fetch) (uri (pypi-uri "WSGIProxy2" version ".tar.gz")) (sha256 (base32 "16jch5nic0hia28lps3c678s9s9mjdq8n87igxncjg0rpi5adqnf")))) (build-system python-build-system) (native-inputs (list python-webtest)) (propagated-inputs (list python-requests python-six python-urllib3 python-webob)) (home-page "https://github.com/gawel/WSGIProxy2/") (synopsis "WSGI Proxy with various http client backends") (description "WSGI turns HTTP requests into WSGI function calls. WSGIProxy turns WSGI function calls into HTTP requests. It also includes code to sign requests and pass private data, and to spawn subprocesses to handle requests.") (license license:expat))) (define-public python-pastedeploy (package (name "python-pastedeploy") (version "2.1.1") (source (origin (method url-fetch) (uri (pypi-uri "PasteDeploy" version)) (sha256 (base32 "05s88qdjdwd9d9qs13fap7nqgxs7qs5qfzzjbrc5va13k2mxdskd")))) (build-system python-build-system) (arguments '(#:test-target "pytest")) (native-inputs (list python-pytest python-pytest-runner)) (home-page "https://pylonsproject.org/") (synopsis "Load, configure, and compose WSGI applications and servers") (description "This tool provides code to load WSGI applications and servers from URIs; these URIs can refer to Python Eggs for INI-style configuration files. Paste Script provides commands to serve applications based on this configuration file.") (license license:expat))) (define-public python-webtest (package (name "python-webtest") (version "2.0.35") (source (origin (method url-fetch) (uri (pypi-uri "WebTest" version)) (sha256 (base32 "11xhgdj251zkvz5w30fvspii08ki2vrpr1im9sph1wmlnasnihda")))) (build-system python-build-system) (arguments ;; Tests require python-pyquery, which creates a circular dependency. `(#:tests? #f)) (propagated-inputs (list python-waitress python-webob python-six python-beautifulsoup4)) (home-page "https://docs.pylonsproject.org/projects/webtest/") (synopsis "Helper to test WSGI applications") (description "Webtest allows you to test your Python web applications without starting an HTTP server. It supports anything that supports the minimum of WSGI.") (license license:expat))) (define-public python-flask (package (name "python-flask") (version "3.1.0") (source (origin (method url-fetch) (uri (pypi-uri "flask" version)) (sha256 (base32 "1b1nb250jxrjplbs21wnwq69250vs3iz2pdhs7cwi5y8hi8kr1sz")))) (build-system pyproject-build-system) (native-inputs (list python-flit-core python-pytest)) (propagated-inputs (list python-asgiref ;async extra python-click python-blinker python-importlib-metadata python-itsdangerous python-jinja2 python-werkzeug)) (home-page "https://palletsprojects.com/p/flask/") (synopsis "Microframework based on Werkzeug, Jinja2 and good intentions") (description "Flask is a micro web framework based on the Werkzeug toolkit and Jinja2 template engine. It is called a micro framework because it does not presume or force a developer to use a particular tool or library.") (license license:bsd-3))) (define-public python-flask-compress (package (name "python-flask-compress") (version "1.13") (source (origin (method url-fetch) (uri (pypi-uri "Flask-Compress" version)) (sha256 (base32 "178jzz6jxlxllcjqamzh5q7ahfh90m5cl1il9vmjs3xhz65z35pf")))) (build-system pyproject-build-system) (propagated-inputs (list python-brotli python-flask)) (native-inputs (list python-setuptools-scm python-setuptools python-wheel)) (home-page "https://github.com/colour-science/flask-compress") (synopsis "Compress responses in a Flask app") (description "This package lets you compress Flask application responses and static files with gzip, deflate or brotli. Flask-Compress both adds the various headers required for a compressed response and compresses the response data.") (license license:expat))) (define-public python-flask-seasurf (package (name "python-flask-seasurf") (version "1.1.1") (source (origin (method url-fetch) (uri (pypi-uri "Flask-SeaSurf" version)) (sha256 (base32 "1aaib4n27q0f2alp87mhv3f79vg7qckp71rphbd0mb39qw470lsl")))) (build-system pyproject-build-system) (arguments (list #:tests? #false)) ;there are none (propagated-inputs (list python-flask)) (native-inputs (list python-setuptools python-wheel)) (home-page "https://github.com/maxcountryman/flask-seasurf/") (synopsis "CSRF extension for Flask") (description "SeaSurf is a Flask extension for preventing cross-site request forgery (CSRF). CSRF attacks are problematic because the mechanism they use is relatively easy to exploit. This extension attempts to aid you in securing your application from such attacks. This extension is based on the Django middleware.") (license license:bsd-3))) (define-public python-flask-wtf (package (name "python-flask-wtf") (version "1.0.1") (source (origin (method url-fetch) (uri (pypi-uri "Flask-WTF" version)) (sha256 (base32 "1jd614662r6ifh4svs8zfwm4k8bal5z3n6pq607bas8gxrpmrzil")))) (build-system python-build-system) (arguments '(#:phases (modify-phases %standard-phases (replace 'check (lambda _ (invoke "pytest" "-vv")))))) (propagated-inputs (list python-flask python-itsdangerous python-wtforms)) (native-inputs (list python-pytest)) (home-page "https://github.com/lepture/flask-wtf") (synopsis "Simple integration of Flask and WTForms") (description "Flask-WTF integrates Flask and WTForms, including CSRF, file upload, and reCAPTCHA.") (license license:bsd-3))) (define-public python-flask-multistatic (package (name "python-flask-multistatic") (version "1.0") (source (origin (method url-fetch) (uri (pypi-uri "flask-multistatic" version)) (sha256 (base32 "0p4v50rwv64wcd0zlq7rzl4waprwr4hj19s3cgf1isywa7jcisgm")))) (build-system python-build-system) (propagated-inputs (list python-flask)) (home-page "https://pagure.io/flask-multistatic") (synopsis "Flask plugin to allow overriding static files") (description "@code{flask-multistatic} is a flask plugin that adds support for overriding static files.") (license license:gpl3+))) (define-public python-cookies (package (name "python-cookies") (version "2.2.1") (source (origin (method url-fetch) (uri (pypi-uri "cookies" version)) (sha256 (base32 "13pfndz8vbk4p2a44cfbjsypjarkrall71pgc97glk5fiiw9idnn")))) (build-system python-build-system) (arguments `(;; test are broken: https://gitlab.com/sashahart/cookies/issues/3 #:tests? #f)) (native-inputs (list python-pytest)) (synopsis "HTTP cookie parser and renderer") (description "A RFC 6265-compliant HTTP cookie parser and renderer in Python.") (home-page "https://gitlab.com/sashahart/cookies") (license license:expat))) (define-public python-responses (package (name "python-responses") (version "0.25.3") (source (origin (method url-fetch) (uri (pypi-uri "responses" version)) (sha256 (base32 "1fld6lsa143md4lxccwxq9iyqm9d8a05i9sp7lqjibnrmd3r4yv1")))) (build-system pyproject-build-system) (native-inputs (list python-pytest python-pytest-asyncio python-pytest-httpserver python-setuptools python-tomli python-tomli-w python-wheel)) (propagated-inputs (list python-requests python-pyyaml python-urllib3)) (home-page "https://github.com/getsentry/responses") (synopsis "Utility for mocking out the `requests` Python library") (description "A utility library for mocking out the `requests` Python library.") (license license:asl2.0))) (define-public python-grequests (package (name "python-grequests") (version "0.3.0") (source (origin (method url-fetch) (uri (pypi-uri "grequests" version)) (sha256 (base32 "1j9icncllbkv7x5719b20mx670c6q1jrdx1sakskkarvx3pc8h8g")))) (build-system python-build-system) (propagated-inputs (list python-gevent python-requests)) (native-inputs (list python-nose python-zope-interface python-zope-event)) (home-page "https://github.com/kennethreitz/grequests") (synopsis "Python library for asynchronous HTTP requests") (description "GRequests is a Python library that allows you to use @code{Requests} with @code{Gevent} to make asynchronous HTTP Requests easily") (license license:bsd-2))) (define-public python-gwebsockets (package (name "python-gwebsockets") (version "0.7") (source (origin (method url-fetch) (uri (pypi-uri "gwebsockets" version)) (sha256 (base32 "0kgq7wssz0mrhxdafkfc9prj0qjv9z0lyivyqvjvjnnypg54di7m")))) (build-system python-build-system) (propagated-inputs (list python-pygobject)) (home-page "https://github.com/sugarlabs/gwebsockets") (synopsis "GLib based websockets server") (description "This package provides a websocket server written in Python. It uses GIO for network communication and hence it easily integrates with the GLib mainloop.") (license license:asl2.0))) (define-public python-dpkt (package (name "python-dpkt") (version "1.9.4") (source (origin (method url-fetch) (uri (pypi-uri "dpkt" version)) (sha256 (base32 "1d28r8pmhzjjd6hrn1xcddinfhwv8lcl1s59ygmqa8kfmz5pkrgl")))) (build-system python-build-system) (home-page "https://github.com/kbandla/dpkt") (synopsis "Packet generator and parser for TCP/IP protocols") (description "The dpkt module is a fast, simple packet generator and parser for the basic TCP/IP protocols.") (license license:bsd-3))) (define-public python-geventhttpclient (package (name "python-geventhttpclient") (version "2.0.9") (source (origin (method url-fetch) (uri (pypi-uri "geventhttpclient" version)) (sha256 (base32 "04qmcc7qpnif70ph61339dcld4g107fkhpa0gdmbs8z98v9kkg4a")) (modules '((guix build utils))) (snippet '(begin ;; Delete pre-compiled files. (for-each delete-file (find-files "src/geventhttpclient" ".*\\.pyc")))))) (build-system python-build-system) (arguments '(#:phases (modify-phases %standard-phases (add-after 'unpack 'delete-network-tests (lambda _ (delete-file "src/geventhttpclient/tests/test_client.py"))) (add-after 'unpack 'fix-compatibility-issue ;; See: https://github.com/gwik/geventhttpclient/issues/137. (lambda _ (substitute* "src/geventhttpclient/tests/test_ssl.py" ((".*sock.last_seen_sni = None.*") "")))) (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? (invoke "pytest" "src/geventhttpclient/tests" "-v" ;; Append the test modules to sys.path to avoid ;; namespace conflict which breaks SSL tests. "--import-mode=append"))))))) (native-inputs (list nss-certs-for-test python-dpkt python-pytest)) (propagated-inputs (list python-brotli python-certifi python-gevent python-six python-urllib3)) (home-page "https://github.com/geventhttpclient/geventhttpclient") (synopsis "HTTP client library for gevent") (description "@code{python-geventhttpclient} is a high performance, concurrent HTTP client library for python using @code{gevent}.") (license license:expat))) (define-public python-requests-oauthlib (package (name "python-requests-oauthlib") (version "1.2.0") (source (origin (method url-fetch) (uri (pypi-uri "requests-oauthlib" version)) (sha256 (base32 "0mrglgcvq7k48pf27s4gifdk0za8xmgpf55jy15yjj471qrk6rdx")))) (build-system python-build-system) (arguments `(#:phases (modify-phases %standard-phases ;; removes tests that require network access (add-before 'check 'pre-check (lambda _ (delete-file "tests/test_core.py") #t))))) (native-inputs (list python-pyjwt python-requests-mock python-mock)) (propagated-inputs (list python-oauthlib python-requests)) (home-page "https://github.com/requests/requests-oauthlib") (synopsis "OAuthlib authentication support for Requests") (description "Requests-OAuthlib uses the Python Requests and OAuthlib libraries to provide an easy-to-use Python interface for building OAuth1 and OAuth2 clients.") (license license:isc))) (define-public python-url (package (name "python-url") (version "0.2.0") (source (origin (method url-fetch) (uri (pypi-uri "url" version)) (sha256 (base32 "0v879yadcz9qxfl41ak6wkga1kimp9cflla9ddz03hjjvgkqy5ki")))) (build-system python-build-system) (propagated-inputs (list python-publicsuffix)) (native-inputs (list python-coverage python-nose)) (arguments `(#:tests? #f)) ; FIXME: tests fail with "ImportError: No module named 'tests'" (home-page "https://github.com/seomoz/url-py") (synopsis "URL Parsing") (description "Library for parsing urls.") (license license:expat))) (define-public python-cachecontrol (package (name "python-cachecontrol") (version "0.12.10") (source (origin (method git-fetch) ;; Pypi does not have tests. (uri (git-reference (url "https://github.com/ionrock/cachecontrol") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "0fviacb13h72l5c77p35lgr6kvlidfdb9xsicg3v6lblmp9cn2ws")))) (build-system python-build-system) (arguments ;; Versions > 0.11.6 depend on CherryPy for testing. ;; It's too much work to package CherryPy for now. `(#:tests? #f)) (propagated-inputs (list python-requests python-msgpack python-lockfile)) (home-page "https://github.com/ionrock/cachecontrol") (synopsis "The httplib2 caching algorithms for use with requests") (description "CacheControl is a port of the caching algorithms in @code{httplib2} for use with @code{requests} session objects.") (license license:asl2.0))) (define-public python-cachecontrol-0.11 (package (inherit python-cachecontrol) (name "python-cachecontrol") (version "0.11.7") (source (origin (method url-fetch) (uri (pypi-uri "CacheControl" version)) (sha256 (base32 "07jsfhlbcwgqg6ayz8nznzaqg5rmxqblbzxz1qvg5wc44pcjjy4g")))))) (define-public python-betamax (package (name "python-betamax") (version "0.9.0") (source (origin (method url-fetch) (uri (pypi-uri "betamax" version)) (sha256 (base32 "152zil1j4gl1whnldi08zwjr4z2bnlbd061kr3ipjs5wg4b6wcc2")))) (build-system python-build-system) (arguments '(;; Many tests fail because they require networking. #:tests? #f)) (propagated-inputs (list python-requests)) (home-page "https://github.com/sigmavirus24/betamax") (synopsis "Record HTTP interactions with python-requests") (description "Betamax will record your test suite's HTTP interactions and replay them during future tests. It is designed to work with python-requests.") (license license:expat))) (define-public python-betamax-matchers (package (name "python-betamax-matchers") (version "0.4.0") (source (origin (method url-fetch) (uri (pypi-uri "betamax-matchers" version)) (sha256 (base32 "07qpwjyq2i2aqhz5iwghnj4pqr2ys5n45v1vmpcfx9r5mhwrsq43")))) (build-system python-build-system) (propagated-inputs (list python-betamax python-requests-toolbelt)) (home-page "https://github.com/sigmavirus24/betamax_matchers") (synopsis "VCR imitation for python-requests") (description "@code{betamax-matchers} provides a set of Matchers for Betamax.") (license license:asl2.0))) (define-public python-betamax-serializers (package (name "python-betamax-serializers") (version "0.2.1") (source (origin (method url-fetch) (uri (pypi-uri "betamax-serializers" version)) (sha256 (base32 "0ja9isbjmzzhxdj69s0kdsvw8nkp073w6an6a4liy5vk3fdl2p1l")))) (build-system python-build-system) (propagated-inputs (list python-betamax python-pyyaml)) (synopsis "Set of third-party serializers for Betamax") (description "Betamax-Serializers are an experimental set of Serializers for Betamax that may possibly end up in the main package.") (home-page "https://gitlab.com/betamax/serializers") (license license:asl2.0))) (define-public python-s3transfer (package (name "python-s3transfer") (version "0.10.3") (source (origin (method url-fetch) (uri (pypi-uri "s3transfer" version)) (sha256 (base32 "032bjky1q8r5x80mvb0ah60g0zq4snwf0xa4c7779m44mdsfsl2g")))) (build-system pyproject-build-system) (arguments (list #:test-flags #~(list "--numprocesses" (number->string (parallel-job-count)) ;; Tests require networking. "--ignore" "tests/integration"))) (native-inputs (list python-docutils python-mock python-nose python-pytest python-pytest-xdist python-setuptools python-wheel)) (propagated-inputs (list python-botocore python-urllib3)) (home-page "https://github.com/boto/s3transfer") (synopsis "Amazon S3 Transfer Manager") (description "S3transfer is a Python library for managing Amazon S3 transfers.") (license license:asl2.0))) (define-public python-flask-restful (package (name "python-flask-restful") (version "0.3.10") (source (origin (method url-fetch) (uri (pypi-uri "Flask-RESTful" version)) (sha256 (base32 "0dzckjjz3aw8nmisr5g9mnv02s2nqlhblykr9ydqzpr703pz4jpy")))) (build-system pyproject-build-system) (arguments ;; See <https://github.com/flask-restful/flask-restful/issues/980>. (list #:tests? #f)) (propagated-inputs (list python-aniso8601 python-flask python-pytz)) (native-inputs (list python-blinker python-mock python-pytest python-setuptools python-wheel)) (home-page "https://www.github.com/flask-restful/flask-restful/") (synopsis "Flask module for creating REST APIs") (description "This package contains a Flask module for creating REST APIs.") (license license:bsd-3))) (define-public python-flask-basicauth (package (name "python-flask-basicauth") (version "0.2.0") (source (origin (method url-fetch) (uri (pypi-uri "Flask-BasicAuth" version)) (sha256 (base32 "1zq1spkjr4sjdnalpp8wl242kdqyk6fhbnhr8hi4r4f0km4bspnz")))) (build-system python-build-system) (arguments `(#:phases (modify-phases %standard-phases (add-after 'unpack 'fix-imports (lambda _ (substitute* '("docs/index.rst" "docs/conf.py" "flask_basicauth.py" "test_basicauth.py") (("flask\\.ext\\.basicauth") "flask_basicauth")) #t))))) (propagated-inputs (list python-flask)) (home-page "https://github.com/jpvanhal/flask-basicauth") (synopsis "HTTP basic access authentication for Flask") (description "This package provides HTTP basic access authentication for Flask.") (license license:bsd-3))) (define-public python-flask-htpasswd (package (name "python-flask-htpasswd") (version "0.3.1") (source (origin (method url-fetch) (uri (pypi-uri "flask-htpasswd" version)) (sha256 (base32 "14q1y1y9i9bhabdnwd25jqzc4ljli23smxfyyh8abxz1vq93pxra")))) (build-system python-build-system) (propagated-inputs (list python-flask python-itsdangerous python-passlib python-tox)) (home-page "https://github.com/carsongee/flask-htpasswd") (synopsis "Basic authentication via htpasswd files in Flask applications") (description "This package provides Basic authentication via @file{htpasswd} files and access_token authentication in Flask applications.") (license license:bsd-3))) (define-public python-flask-sqlalchemy (package (name "python-flask-sqlalchemy") (version "3.1.1") (source (origin (method url-fetch) (uri (pypi-uri "flask_sqlalchemy" version)) (sha256 (base32 "04l3dfivznlpvk9p9f20zdbyxl869k42z2w7glddlbc0h6w8pdp4")))) (build-system pyproject-build-system) (arguments (list #:test-flags #~(list "-k" (string-append "not test_explicit_table[db2]" " and not test_explicit_table[db4]")))) (native-inputs (list python-flit-core python-pytest)) (propagated-inputs (list python-flask python-sqlalchemy-2)) (home-page "https://github.com/mitsuhiko/flask-sqlalchemy") (synopsis "Module adding SQLAlchemy support to your Flask application") (description "This package adds SQLAlchemy support to your Flask application.") (license license:bsd-3))) (define-public python-flask-restful-swagger (package (name "python-flask-restful-swagger") (version "0.20.1") (source (origin (method url-fetch) (uri (pypi-uri "flask-restful-swagger" version)) (sha256 (base32 "1p66f98b5zpypnnz56pxpbirchqj6aniw6qyrp8h572l0dn9xlvq")))) (build-system python-build-system) (arguments '(#:tests? #f)) ;no tests (propagated-inputs (list python-flask-restful python-six)) (home-page "https://github.com/rantav/flask-restful-swagger") (synopsis "Extract Swagger specs from Flask-Restful projects") (description "This package lets you extract Swagger API documentation specs from your Flask-Restful projects.") (license license:expat))) (define-public python-htmlmin (package (name "python-htmlmin") (version "0.1.12") (source (origin (method url-fetch) (uri (pypi-uri "