diff options
Diffstat (limited to 'gnu/packages/python-web.scm')
-rw-r--r-- | gnu/packages/python-web.scm | 978 |
1 files changed, 582 insertions, 396 deletions
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 9ba97b3b21..7f4f175c8e 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -337,21 +337,30 @@ server process.") (define-public python-devpi-server (package (name "python-devpi-server") - (version "6.14.0") + (version "6.17.0") (source (origin (method url-fetch) - (uri (pypi-uri "devpi-server" version)) + (uri (pypi-uri "devpi_server" version)) (sha256 - (base32 "08smfjhnvqj68fp45gzqm9axjcgnksc0z31v48llivnzlxwf8cmr")))) + (base32 "13lybrw8j6zjxwvx6sk7bw6854hd2m18s1xcvl0q100j4n06p6ml")))) (build-system pyproject-build-system) (arguments (list #:test-flags ;; These all fail with: "module 'py' has no attribute 'io'" - '(list "--ignore=test_devpi_server/test_importexport.py" - "--ignore=test_devpi_server/test_main.py" - "--ignore=test_devpi_server/test_genconfig.py"))) + #~(list "--ignore=test_devpi_server/test_importexport.py" + "--ignore=test_devpi_server/test_main.py" + "--ignore=test_devpi_server/test_genconfig.py") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'relax-requirements + (lambda _ + (substitute* "pyproject.toml" + ;; It straggles to check argon2 in passlib on any versions + ;; starting from 6.14.0: UnknownExtra("passlib 1.7.4 has no + ;; such extra feature 'argon2'",). + (("passlib\\[argon2\\]") "passlib"))))))) (propagated-inputs (list python-argon2-cffi python-attrs python-defusedxml @@ -366,16 +375,16 @@ server process.") python-py python-pyramid python-repoze-lru - python-ruamel.yaml + python-ruamel.yaml-0.16 ;FIXME: rename python-strictyaml python-waitress)) (native-inputs (list python-execnet python-pytest + python-pytest-asyncio python-pytest-timeout python-setuptools - python-webtest - python-wheel)) + python-webtest)) (home-page "https://devpi.net") (synopsis "Pypi.org caching server") (description "This package implements a reliable private and pypi.org @@ -991,18 +1000,26 @@ datasets and other repos on the @url{huggingface.co} hub.") (for-each delete-file '("test_oauth.py" "test_docs.py"))) (substitute* "setup.py" (("\"(oauth|lazr\\.(authentication|restful>=0\\.11\\.0))\",") - ""))))))) - (native-inputs (list python-setuptools - python-testtools - python-wheel - python-wsgi-intercept - python-zope-testrunner)) - (propagated-inputs (list python-distro - python-httplib2 - python-oauthlib - python-pyparsing - python-setuptools - python-wadllib)) + "")))) + (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-setuptools + python-testtools + python-wheel + python-wsgi-intercept + python-zope-testrunner)) + (propagated-inputs + (list python-distro + python-httplib2 + python-oauthlib + python-pyparsing + python-setuptools + 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 @@ -1039,15 +1056,24 @@ scripting Launchpad via its the web service API.") (define-public python-lazr-uri (package (name "python-lazr-uri") - (version "1.0.6") + (version "1.0.7") (source (origin (method url-fetch) - (uri (pypi-uri "lazr.uri" version)) + (uri (pypi-uri "lazr_uri" version)) (sha256 - (base32 "0r44rw0bj5mayhqwfwj1dnrjgzj1lrh7ishiddd1vygnrczqa9jh")))) - (build-system python-build-system) - (native-inputs (list python-zope-testrunner)) + (base32 "1vm34pw8fksc6m8fnqwh215sqdlw546cxcdga93i2l746grzc37d")))) + (build-system pyproject-build-system) + (arguments + (list + #: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-setuptools python-zope-testrunner)) (home-page "https://launchpad.net/lazr.uri") (synopsis "Python URI manipulation library") (description "This Python package provides a self-contained, easily @@ -1908,7 +1934,7 @@ routes using HTTP Digest Authentication.") (lambda _ (substitute* "setup.cfg" (("^tests_require.*") ""))))))) - (native-inputs (list python-setuptools python-wheel unzip)) + (native-inputs (list python-pytest python-setuptools)) (home-page "https://github.com/juancarlospaco/css-html-js-minify") (synopsis "CSS/HTML/JS minifier") (description @@ -2088,8 +2114,10 @@ Features: ;; FIXME: This should be fixed in python-xmlsec (add-before 'check 'pre-check (lambda* (#:key inputs #:allow-other-keys) - (setenv "LD_LIBRARY_PATH" - (dirname (search-input-file inputs "lib/libxmlsec1-openssl.so.1.2.37")))))))) + (let ((lib (search-input-file inputs + "lib/libxmlsec1-openssl.so"))) + (setenv "LD_LIBRARY_PATH" (dirname lib)))))))) + (inputs (list xmlsec-openssl)) (propagated-inputs (list python-isodate python-lxml python-xmlsec)) (native-inputs (list python-coverage python-flake8 @@ -4463,23 +4491,51 @@ 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-dottedname + (package + (name "python-zope-dottedname") + (version "7.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/zopefoundation/zope.dottedname") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0h7a637zsl1a3f0rpb2nw41mzxv0pqyj8ahn6h60n2c1px912rbd")))) + (build-system pyproject-build-system) + (arguments + (list #:test-backend #~'custom + #:test-flags #~(list "src/zope/dottedname/tests.py"))) + (native-inputs (list python-setuptools)) + (home-page "https://zopedottedname.readthedocs.io") + (synopsis "Resolver for Python dotted names") + (description + "This package provides a @code{resolve()} function that resolves strings +containing dotted names into the appropriate Python object.") + (license license:zpl2.1))) + (define-public python-zope-event (package (name "python-zope-event") (version "6.0") (source (origin - (method url-fetch) - (uri (pypi-uri "zope_event" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/zopefoundation/zope.event") + (commit version))) + (file-name (git-file-name name version)) (sha256 - (base32 "14nzj3wd203z68glpskmvinxxhfq6chjf70li5x8npvwzaacifhf")))) + (base32 "0la3q47c59aq50s036q468bhnmzgs71f1cygv89w6qkk1hkn35ym")))) (build-system pyproject-build-system) (arguments - (list #:test-flags #~(list "src/zope/event/tests.py"))) - (native-inputs - (list python-pytest - python-setuptools)) - (home-page "https://pypi.org/project/zope.event/") + (list + #:test-flags + #~(list "src/zope/event/tests.py"))) + (native-inputs (list python-pytest python-setuptools)) + (home-page "https://zopeevent.readthedocs.io/en/latest/") (synopsis "Event publishing system for Python") (description "Zope.event provides an event publishing API, intended for use by @@ -4494,51 +4550,56 @@ systems can be built.") (version "7.2") (source (origin - (method url-fetch) - (uri (pypi-uri "zope.interface" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/zopefoundation/zope.interface") + (commit version))) + (file-name (git-file-name name version)) (sha256 - (base32 - "1zi84y3s90jylv8xfvdlr05f9xf7ca1p6bidngsxlk7fs6iz2jcb")))) + (base32 "01snm1lbqhx3ird4m76nciaqasxvf8dd6817zm35v684g5hbzd2s")))) (build-system pyproject-build-system) - (arguments '(#:tests? #f)) ; test suite can't find python-zope-testing - (native-inputs - (list python-setuptools)) - (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.") + (arguments + ;; XXX: test suite can't find python-zope-testing + (list #:tests? #f)) + (native-inputs (list python-setuptools)) + (home-page "https://zopeinterface.readthedocs.io") + (synopsis "\"Design by contract\" methodology in Python") + (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") + (version "6.0") (source (origin - (method url-fetch) - (uri (pypi-uri "zope.exceptions" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/zopefoundation/zope.exceptions") + (commit version))) + (file-name (git-file-name name version)) (sha256 - (base32 - "1kc3hql2i35ys5alkj9csiaz2s9bx0rff585vnrrgvavqsj297b1")))) - (build-system python-build-system) + (base32 "0fmsw2j8islaiv6zf2mxh2s43y7virqny6s8gk8v2zkcxpy95cic")))) + (build-system pyproject-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/") + (list + #: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-setuptools python-zope-testrunner-bootstrap)) + (propagated-inputs (list python-zope-interface)) + (home-page "https://github.com/zopefoundation/zope.exceptions") (synopsis "Zope exceptions") - (description "Zope.exceptions provides general-purpose exception types -that have uses outside of the Zope framework.") + (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) @@ -4547,16 +4608,17 @@ that have uses outside of the Zope framework.") (name (string-append (package-name orig) "-bootstrap")) (arguments (if (null? (package-arguments orig)) - `(#:tests? #f - #:phases (modify-phases %standard-phases - (delete 'sanity-check))) + (list + #: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)))))) + #~(modify-phases #$phases + (delete 'sanity-check)))))) (propagated-inputs `()) - (native-inputs `()) + (native-inputs (list python-setuptools)) (properties `((hidden? . #t))))) (define-public python-zope-exceptions-bootstrap @@ -4565,18 +4627,29 @@ that have uses outside of the Zope framework.") (define-public python-zope-testing (package (name "python-zope-testing") - (version "5.1") + (version "6.0") (source (origin - (method url-fetch) - (uri (pypi-uri "zope_testing" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/zopefoundation/zope.testing") + (commit version))) + (file-name (git-file-name name version)) (sha256 - (base32 "0iyc3ahiyibqqzk8s4i07c7all9ng89dp6hs95p7jf1xxjmfndbi")))) + (base32 "0zqipsgv7qj7f8hrd3x6xpqwszdiac8vpjdm8ak5kljl5napw7d7")))) (build-system pyproject-build-system) - (arguments (list #:test-backend #~'custom - #:test-flags #~(list "src/zope/testing/tests.py"))) - (native-inputs - (list python-setuptools)) + (arguments + (list + #: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-setuptools + python-zope-interface + python-zope-testrunner-bootstrap)) (home-page "https://zopetesting.readthedocs.io/") (synopsis "Zope testing helpers") (description @@ -4587,60 +4660,71 @@ servers, regular expressions, and more.") (define-public python-zope-testrunner (package (name "python-zope-testrunner") - (version "5.2") + (version "7.4") (source (origin - (method url-fetch) - (uri (pypi-uri "zope.testrunner" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/zopefoundation/zope.testrunner") + (commit version))) + (file-name (git-file-name name version)) (sha256 - (base32 - "0jyyf1dcz156q95x2y7yw2v420q2xn3cff0c5aci7hmdmcbn0gc7")))) - (build-system python-build-system) + (base32 "0gd5rnzw6vzbx766jxqr4zc6qx7gk75r2c0nqqvhkb12hzk5ca2g")))) + (build-system pyproject-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/") + (list + #: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"))) + (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-setuptools python-zope-testing)) + (propagated-inputs (list python-zope-exceptions python-zope-interface)) + (home-page "https://zopetestrunner.readthedocs.io") (synopsis "Zope testrunner script") - (description "Zope.testrunner provides a script for running Python -tests.") + (description "This package 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))) + (list python-six python-zope-exceptions-bootstrap)) (properties `((hidden? . #t))))) (define-public python-zope-i18nmessageid (package (name "python-zope-i18nmessageid") - (version "5.1.1") + (version "7.0") (source (origin - (method url-fetch) - (uri (pypi-uri "zope.i18nmessageid" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/zopefoundation/zope.i18nmessageid") + (commit version))) + (file-name (git-file-name name version)) (sha256 - (base32 "14mx62khys82p2gmmf3m40x4jmvcz3rndvl6qik2n2qfp13n7ds7")))) + (base32 "192ixj8r9n467avbxrmhakmqiaflc1vw37k08z096ajcjgbfrm5d")))) (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/") + (arguments + (list + #: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-setuptools python-zope-testrunner)) + (home-page "https://zopei18nmessageid.readthedocs.io") (synopsis "Message identifiers for internationalization") (description "Zope.i18nmessageid provides facilities for declaring internationalized messages within program source text.") @@ -4652,27 +4736,28 @@ internationalized messages within program source text.") (version "7.0.1") (source (origin - (method url-fetch) - (uri (pypi-uri "zope.schema" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/zopefoundation/zope.schema") + (commit version))) + (file-name (git-file-name name version)) (sha256 - (base32 - "1fgvx7nim9plxnyiq6vmah1dji7ba5290fws1i0lwk9m0g5xpm7a")))) - (build-system python-build-system) + (base32 "1hj6j0gqgvv9a5pyaz54wbn8n7wf9lyg4njb2cfs980z0d5faj39")))) + (build-system pyproject-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/") + (list + #: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") + (format #t "test suite not run.~%"))))))) + (propagated-inputs (list python-zope-event python-zope-interface)) + (native-inputs (list python-zope-i18nmessageid python-zope-testing + python-zope-testrunner python-setuptools)) + (home-page "https://zopeschema.readthedocs.io") (synopsis "Zope data schemas") (description "Zope.scheme provides extensions to zope.interface for defining data schemas.") @@ -4682,43 +4767,66 @@ defining data schemas.") (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)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/zopefoundation/zope.sqlalchemy") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1z4gw4i95dyqxsvrahk4fav008045n8kyxpn3fa887snmpvcjhng")))) + (build-system pyproject-build-system) + (arguments + (list + #: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~%"))))))) + (propagated-inputs (list python-sqlalchemy python-transaction + python-zope-interface)) + (native-inputs (list python-zope-testing python-zope-testrunner + python-setuptools)) (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.") + (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/") + (version "7.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/zopefoundation/zope.configuration") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "11lr6z3jpz9835a1if89g3x7k31sviq2d0xvvic5xi4c980dbkhv")))) + (build-system pyproject-build-system) + (arguments + (list + #: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-manuel python-setuptools python-zope-testing + python-zope-testrunner)) + (propagated-inputs (list python-zope-i18nmessageid python-zope-interface + python-zope-schema)) + (home-page "https://zopeconfiguration.readthedocs.io") (synopsis "Zope Configuration Markup Language") (description "Zope.configuration implements ZCML, the Zope Configuration Markup Language.") @@ -4730,29 +4838,37 @@ Markup Language.") (define-public python-zope-copy (package (name "python-zope-copy") - (version "4.2") + (version "6.0") (source - (origin - (method url-fetch) - (uri (pypi-uri "zope.copy" version)) - (sha256 - (base32 - "06m75434krl57n6p73c2qj55k5i3fixg887j8ss01ih6zw4rvfs7")))) - (build-system python-build-system) + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/zopefoundation/zope.copy") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1ym82p9scpfi3rflxnlv55v0a7hra3rq4rrlw759maq05i8qp1w5")))) + (build-system pyproject-build-system) (arguments - '(#:phases - (modify-phases %standard-phases - (replace 'check - (lambda _ - (invoke "zope-testrunner" "--test-path=src" "\\[]")))))) - (propagated-inputs - (list python-zope-interface)) + (list + #: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~%"))))))) + (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") + (list python-zodbpickle + python-zope-component-bootstrap + python-zope-location-bootstrap + python-zope-proxy + python-zope-schema + python-zope-testing + python-zope-testrunner + python-setuptools)) + (home-page "https://zopecopy.readthedocs.io") (synopsis "Pluggable object copying mechanism") (description "This package provides a pluggable mechanism for copying persistent objects.") @@ -4761,26 +4877,40 @@ Markup Language.") (define-public python-zope-proxy (package (name "python-zope-proxy") - (version "4.3.5") + (version "7.0") (source (origin - (method url-fetch) - (uri (pypi-uri "zope.proxy" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/zopefoundation/zope.proxy") + (commit version))) + (file-name (git-file-name name version)) (sha256 - (base32 - "14h7nyfbl5vpfk0rbviy4ygdfx0yx5kncvg6jpbdb0dhwna0ssm6")))) - (build-system python-build-system) + (base32 "00r9f4n0cl3fyc5gyf5l43zh95cmzx1gz6wr04k17d7wm2gmivyn")))) + (build-system pyproject-build-system) + (arguments + (list + #: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-security-bootstrap python-zope-testrunner)) - (propagated-inputs - (list python-zope-interface)) - (home-page "https://pypi.org/project/zope.proxy/") + (list python-zope-location-bootstrap + python-zope-security-bootstrap + python-zope-testrunner + python-setuptools)) + (propagated-inputs (list python-zope-interface)) + (home-page "https://zopeproxy.readthedocs.io") (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.") + (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 @@ -4789,49 +4919,70 @@ brokering, etc.) for which the proxy is responsible.") (define-public python-zope-hookable (package (name "python-zope-hookable") - (version "5.0.1") + (version "7.0") (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") + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/zopefoundation/zope.hookable") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1l94xzzpyslpgv2ghvl5qzpfcsq02kp04fmvl95d6jcmivmmr4m8")))) + (build-system pyproject-build-system) + (arguments + (list + #: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 + python-setuptools)) + (home-page "https://zopehookable.readthedocs.io") (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.") + (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") + (version "6.0") (source (origin - (method url-fetch) - (uri (pypi-uri "zope.location" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/zopefoundation/zope.location") + (commit version))) + (file-name (git-file-name name version)) (sha256 - (base32 - "1b40pzl8v00d583d3gsxv1qjdw2dhghlgkbgxl3m07d5r3izj857")))) - (build-system python-build-system) + (base32 "1jfsmbxj6hz7kmk5b0351b63ssm7qfkgqmz9v7xb7wwlmxsxkcdk")))) + (build-system pyproject-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/") + (list + #: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-testrunner python-setuptools)) + (propagated-inputs (list python-zope-interface python-zope-proxy + python-zope-schema)) + (home-page "https://zopelocation.readthedocs.io") (synopsis "Zope location library") - (description "Zope.location implements the concept of \"locations\" in -Zope3, which are are special objects that have a structural location.") + (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 @@ -4840,15 +4991,26 @@ Zope3, which are are special objects that have a structural location.") (define-public python-zope-security (package (name "python-zope-security") - (version "5.1.1") + (version "7.3") (source (origin - (method url-fetch) - (uri (pypi-uri "zope.security" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/zopefoundation/zope.security") + (commit version))) + (file-name (git-file-name name version)) (sha256 - (base32 - "11lfw67cigscfax9c5j63xcvz2qcj724zx5fcdqyc94am2glim0h")))) - (build-system python-build-system) + (base32 "06x6qcls2mdl05xnsyy5h70mbgij8xb6ksxbawzrc23cq04nkvx7")))) + (build-system pyproject-build-system) + (arguments + (list + #: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~%"))))))) (propagated-inputs (list python-zope-component python-zope-i18nmessageid @@ -4862,8 +5024,9 @@ Zope3, which are are special objects that have a structural location.") python-zope-configuration-bootstrap python-zope-location-bootstrap python-zope-testing - python-zope-testrunner)) - (home-page "https://pypi.org/project/zope.security/") + python-zope-testrunner + python-setuptools)) + (home-page "https://zopesecurity.readthedocs.io") (synopsis "Zope security framework") (description "Zope.security provides a generic mechanism to implement security policies on Python objects.") @@ -4873,48 +5036,53 @@ security policies on Python objects.") (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))))) + (list python-zope-i18nmessageid + python-zope-interface + python-zope-proxy-bootstrap + python-zope-schema)))) (define-public python-zope-component (package (name "python-zope-component") - (version "4.6.2") + (version "7.0") (source (origin - (method url-fetch) - (uri (pypi-uri "zope.component" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/zopefoundation/zope.component") + (commit version))) + (file-name (git-file-name name version)) (sha256 - (base32 - "14iwp95hh6q5dj4k9h1iw75cbp89bs27nany4dinyglb44c8jqli")))) - (build-system python-build-system) + (base32 "1jygzhcg9rppsrd8cwvm0944naq1ldjf0vcpgsz0glwcdnr7cyfw")))) + (build-system pyproject-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~%"))))))) + (list + #: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-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))) + (list python-persistent + python-zope-configuration-bootstrap + python-zope-i18nmessageid + python-zope-location-bootstrap + python-zope-proxy-bootstrap + python-zope-security-bootstrap + python-zope-testing + python-zope-testrunner + python-setuptools)) (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") + (home-page "https://zopecomponent.readthedocs.io") (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.") + (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 @@ -4923,20 +5091,29 @@ facilities for defining, registering and looking up components.") (define-public python-zope-deferredimport (package (name "python-zope-deferredimport") - (version "4.3.1") + (version "6.0") (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") + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/zopefoundation/zope.deferredimport") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "08j728nn1la570nny1xz1xvxcm9hf2mcc3im1bzcxxrrxh4kw3zd")))) + (build-system pyproject-build-system) + (arguments + (list + #: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~%"))))))) + (propagated-inputs (list python-zope-proxy)) + (native-inputs (list python-zope-testrunner python-setuptools)) + (home-page "https://zopedeferredimport.readthedocs.io") (synopsis "Defer imports until used by code") (description "Often, especially for package modules, you want to import names for @@ -6170,26 +6347,36 @@ 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))) + (let ((commit "60f70e99e942a2df378b4e4f6202dcf862754c2d") + (revision "0")) + (package + (name "python-grequests") + (version (git-version "0.7.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/kennethreitz/grequests") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0132yv1rr4pmrmwasrnasqbnd80pi6rgy52608731p7lidkmxz9a")))) + (build-system pyproject-build-system) + (arguments + (list + ;; XXX: Most failing tests seem to be caused by network access, + ;; but there is no easy/flag way to disable tests selectively. + #:tests? #f + #:test-backend #~'unittest + #:test-flags #~(list "tests.py"))) + (propagated-inputs (list python-gevent python-requests)) + (native-inputs (list python-setuptools)) + (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 @@ -6560,31 +6747,6 @@ S3.") "This package contains a Flask module for creating REST APIs.") (license license:bsd-3))) -(define-public python-flask-htpasswd - (package - (name "python-flask-htpasswd") - (version "0.5.0") - (source - (origin - (method url-fetch) - (uri (pypi-uri "flask-htpasswd" version)) - (sha256 - (base32 - "19arq4rn5nll0bbnsff1j10blm0ydp8nvs09c56s29kmlgj3r42x")))) - (build-system pyproject-build-system) - (arguments (list #:tests? #false)) ;none included - (propagated-inputs - (list python-flask python-passlib python-pyjwt python-tox)) - (native-inputs (list python-pytest - python-setuptools - python-wheel)) - (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") @@ -6812,43 +6974,25 @@ for Flask.") (define-public python-webassets (package (name "python-webassets") - (version "2.0") + (version "3.0.0") (source (origin - (method url-fetch) - (uri (pypi-uri "webassets" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/miracle2k/webassets") + (commit version))) + (file-name (git-file-name name version)) (sha256 - (base32 - "1kc1042jydgk54xpgcp0r1ib4gys91nhy285jzfcxj3pfqrk4w8n")))) - (build-system python-build-system) - (arguments - '(#:phases (modify-phases %standard-phases - (add-before 'check 'adjust-tests - (lambda _ - ;; Fix for Python 3.9 compatibility. - (substitute* "tests/test_script.py" - (("self\\.t\\.isAlive") - "self.t.is_alive")) - ;; This test requires 'postcss' and 'babel' which are - ;; not yet available in Guix. - (delete-file "tests/test_filters.py") - ;; These expect pytest, but when pytest is added to the - ;; environment more tests fail. - (delete-file "tests/test_cache.py") - (delete-file "tests/test_bundle_build.py") - (delete-file "tests/test_bundle_urls.py"))) - (replace 'check - (lambda _ - (invoke "nosetests" "-vv")))))) - (propagated-inputs - (list python-pyyaml)) - (native-inputs - (list python-jinja2 python-mock python-nose)) + (base32 "11hxvdqw86q6r665iryjzwx21ys8jh2c63mw016ldr6j49l0zyyh")))) + (build-system pyproject-build-system) + (propagated-inputs (list python-pyyaml python-zope-dottedname)) + (native-inputs (list python-hatchling python-pytest)) (home-page "https://github.com/miracle2k/webassets") (synopsis "Media asset management") - (description "Merges, minifies and compresses Javascript and CSS files, -supporting a variety of different filters, including YUI, jsmin, jspacker or -CSS tidy. Also supports URL rewriting in CSS files.") + (description + "This package provides utilities to merge, minify and compress Javascript +and CSS files,supporting a variety of different filters, including YUI, jsmin, +jspacker or CSS tidy. It also supports URL rewriting in CSS files.") (license license:bsd-2))) (define-public python-cssmin @@ -8419,7 +8563,8 @@ association.") (sha256 (base32 "19wkdd1grw6mcd4qi8iaw4jdr207h3m24951vgy69j7g904lynjq")))) (build-system pyproject-build-system) - (native-inputs (list python-django python-setuptools python-wheel)) + (arguments (list #:test-backend #~'unittest)) + (native-inputs (list python-django python-setuptools)) (propagated-inputs (list python-tornado)) (home-page "https://github.com/lepture/python-livereload") (synopsis "Python LiveReload") @@ -9212,42 +9357,69 @@ framework, designed to be lean and fast, with few dependencies.") (define-public python-persistent (package (name "python-persistent") - (version "4.6.4") + (version "6.1.1") (source - (origin - (method url-fetch) - (uri (pypi-uri "persistent" version)) - (sha256 - (base32 - "0imm9ji03lhkpcfmhid7x5209ix8g2rlgki9ik1qxks4b8sm8gzq")))) - (build-system python-build-system) + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/zopefoundation/persistent/") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "19qwqg49zql2c8l4vjxjb9haw0bzd6lk8p4v3hip2irch6a4578a")))) + (build-system pyproject-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (if tests? + (invoke "zope-testrunner" "--test-path=src" + ;; XXX: Ignore doc tests. + "!persistent.tests.test_docs") + (format #t "test suite not run~%"))))))) (propagated-inputs - (list python-cffi python-zope-interface)) + (list python-cffi + python-zope-deferredimport + python-zope-interface + python-zope-testrunner)) (native-inputs - (list python-manuel python-zope-testrunner)) + (list python-manuel python-zope-testrunner python-setuptools)) (home-page "https://github.com/zopefoundation/persistent/") (synopsis "Translucent persistent objects") - (description "This package contains a generic persistence implementation for -Python. It forms the core protocol for making objects interact -\"transparently\" with a database such as the ZODB.") + (description + "This package contains a generic persistence implementation for Python. +It forms the core protocol for making objects interact \"transparently\" with +a database such as the ZODB.") (license license:zpl2.1))) (define-public python-btrees (package (name "python-btrees") - (version "4.7.2") + (version "6.1") (source - (origin - (method url-fetch) - (uri (pypi-uri "BTrees" version)) - (sha256 - (base32 - "0iiq0g9k1g6qgqq84q9h6639vlvzznk1rgdm0rfcnnqkbkmsbr3w")))) - (build-system python-build-system) - (propagated-inputs - (list python-persistent python-zope-interface)) - (native-inputs - (list python-persistent python-transaction python-zope-testrunner)) + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/zopefoundation/BTrees") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0vcibmd725ddgsl5yzmi8d403day3796h82xlq84w91xbdrbd5d5")))) + (build-system pyproject-build-system) + (arguments + (list + #: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~%"))))))) + (propagated-inputs (list python-persistent python-zope-interface)) + (native-inputs (list python-persistent python-transaction + python-zope-testrunner python-setuptools)) (home-page "https://github.com/zopefoundation/BTrees") (synopsis "Scalable persistent object containers") (description @@ -9357,6 +9529,11 @@ using a pure Python implementation.") (license license:bsd-3))) (define-public python-pyjsparser + ;; XXX: This project is potentially abandonware, consider to remove in next + ;; refresh cycle, see: + ;; <https://github.com/PiotrDabkowski/pyjsparser/issues/28>, + ;; <https://github.com/PiotrDabkowski/pyjsparser/issues/39>, and + ;; <https://github.com/PiotrDabkowski/pyjsparser/issues/40>. (package (name "python-pyjsparser") (version "2.7.1") @@ -9367,7 +9544,9 @@ using a pure Python implementation.") (sha256 (base32 "0ycmf9fsvwliqmm1n6sfz7x71y7i2kbfgn39d8lsbiccfxmxlq5y")))) (build-system pyproject-build-system) - (native-inputs (list python-setuptools python-wheel)) + (arguments + '(#:tests? #f)) ;no tests in PyPI + (native-inputs (list python-setuptools)) (home-page "https://github.com/PiotrDabkowski/pyjsparser") (synopsis "Fast JavaScript parser") (description @@ -9906,12 +10085,8 @@ SOCKS protocols. It can be paired with any I/O library.") ;; Requires Internet access to resolve example.com (list #:test-flags '(list "--ignore=tests/test_client.py"))) (propagated-inputs (list python-wsproto)) - (native-inputs (list python-flake8 - python-pytest - python-pytest-cov - python-setuptools - python-tox - python-wheel)) + (native-inputs (list python-pytest + python-setuptools)) (home-page "https://github.com/miguelgrinberg/simple-websocket") (synopsis "Simple WebSocket server and client for Python") (description "This package provides a simple @code{WebSocket} server and @@ -10967,16 +11142,27 @@ metadata from HTML markup. Currently, extruct supports: (define-public python-wadllib (package (name "python-wadllib") - (version "1.3.6") + (version "2.0.0") (source (origin (method url-fetch) (uri (pypi-uri "wadllib" version)) (sha256 - (base32 "1z65crvdsjxh9nahz1g6q021ijmv85ixmq88l96d61qh5imavndc")))) + (base32 "09vlfg4mzdmkqk6br7j8ms3116qk5am0nf4v1jkzwd7swhisznqy")))) (build-system pyproject-build-system) + (arguments + (list + ;; XXX: Doctests are currently failing. + #:tests? #f + #: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-setuptools python-wheel)) + (list python-multipart python-setuptools python-zope-testrunner)) (propagated-inputs (list python-lazr-uri)) (home-page "https://launchpad.net/wadllib") (synopsis "Web Application Description Language (WADL) navigation library") |