From d647696c83c7e2fae2f6da82319a5ff7ace35128 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Fri, 7 Nov 2025 16:11:03 +0100 Subject: python-xyz: Add python-paste. * guix-science/packages/python-xyz.scm (python-paste): New variable. --- guix-science/packages/python-xyz.scm | 42 ++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/guix-science/packages/python-xyz.scm b/guix-science/packages/python-xyz.scm index fdf1993..6c94605 100644 --- a/guix-science/packages/python-xyz.scm +++ b/guix-science/packages/python-xyz.scm @@ -589,6 +589,48 @@ scientific data visualization.") (description "Python Bindings for the NVIDIA Management Library.") (license license:bsd-3))) +;; This was removed from Guix proper because of a test failure. +(define-public python-paste + (package + (name "python-paste") + (version "3.10.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/pasteorg/paste") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "12hknlcx31mzqdfwsz6p8abvx0da4s7dwbvhslpf35p92vmf33rm")))) + (build-system pyproject-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + ;; The deprecation warnings break the tests. + (add-after 'unpack 'avoid-deprecation-warnings + (lambda _ + (substitute* "tests/__init__.py" + (("import pkg_resources") ""))))) + #:test-flags + ;; Fails because of deprecation warning from recent setuptools. + #~(list "--deselect=tests/test_cgiapp.py::test_form" + ;; FIXME: Wrong response code. + "--deselect=tests/test_fileapp.py::test_file_cache"))) + (native-inputs + (list python-pytest + python-setuptools + python-wheel)) + (home-page "https://pythonpaste.readthedocs.io/") + (synopsis "Python web development tools, focusing on WSGI") + (description + "Paste provides a variety of web development tools and middleware which +can be nested together to build web applications. Paste's design closely +follows ideas flowing from WSGI (Web Standard Gateway Interface).") + (license license:expat))) + (define-public python-pathlib-abc (package (name "python-pathlib-abc") -- cgit v1.2.3