From a3437ed164f9a1bb13156e323a470a6f1dcb410e Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 10 Feb 2025 07:38:59 +0000 Subject: [PATCH] gnu: python-pastescript: Update to 3.7.0, fix build. * gnu/packages/python-web.scm (python-pastescript): Update to 3.7.0, fix build. [source] : Adjust the name as it's been changed in PyPI archive. [build-system]: Swap to pyproject-build-system. [arguments] : Enable the most of the them. [propagated-inputs]: Add python-setuptools. [native-inputs]: Remove python-nose; add python-pytest and python-wheel. [home-page]: Fix URL. Change-Id: I8584693bf968e8278bdbce3abf43a7cb3b4cd8fb --- gnu/packages/python-web.scm | 34 +++++++++++++++------------------- 1 file changed, 15 insertions(+), 19 deletions(-) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index b4f6da8f02e..259d6c51ec6 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -6565,30 +6565,26 @@ follows ideas flowing from WSGI (Web Standard Gateway Interface).") (define-public python-pastescript (package (name "python-pastescript") - (version "2.0.2") + (version "3.7.0") (source (origin (method url-fetch) - (uri (pypi-uri "PasteScript" version)) + (uri (pypi-uri "pastescript" version)) (sha256 - (base32 - "1h3nnhn45kf4pbcv669ik4faw04j58k8vbj1hwrc532k0nc28gy0")))) - (build-system python-build-system) - (native-inputs - (list python-nose)) - (propagated-inputs - (list python-paste python-pastedeploy)) - (home-page (string-append "https://web.archive.org/web/20161025192515/" - "http://pythonpaste.org/script/")) + (base32 "08959bmp62pb2rlwr4wpwij15y83jcf9wa9jgg32jlvfzf6h4vsk")))) + (build-system pyproject-build-system) (arguments - '(;; Unfortunately, this requires the latest unittest2, - ;; but that requires traceback2 which requires linecache2 which requires - ;; unittest2. So we're skipping tests for now. - ;; (Note: Apparently linetest2 only needs unittest2 for its tests, - ;; so in theory we could get around this situation somehow.) - #:tests? #f)) - (synopsis - "Pluggable command line tool for serving web applications and more") + (list + #:test-flags #~(list "--ignore=tests/appsetup/testfiles"))) + (native-inputs + (list python-pytest + python-wheel)) + (propagated-inputs + (list python-paste + python-pastedeploy + python-setuptools)) + (home-page "https://github.com/pasteorg/pastescript") + (synopsis "Pluggable command line tool for serving web applications and more") (description "PasteScript is a plugin-friendly command line tool which provides a variety of features, from launching web applications to bootstrapping project