From 5e24377063e4a13d3e43608e507cb36df1a12661 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Sat, 29 Nov 2025 21:16:05 +0100 Subject: [PATCH] gnu: python-flask-markdown: Switch to pyproject. * gnu/packages/python-web.scm (python-flask-markdown): [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [arguments]<#:phases>: Add phase 'set-version. [native-inputs]: Add python-setuptools. Replace python-nose by python-pynose. Change-Id: I2d463e5fbb614bd267b5199ebd9983806f1b14a4 Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-web.scm | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 8d00adc981d6753e05c2cda4fe102f98967f1f78..1c1aed557a4a90c0804148d8ebd0b70fbec17109 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -3911,18 +3911,26 @@ Origin Resource Sharing}, making cross-origin AJAX possible.") (version "0.3") (source (origin - (method url-fetch) - (uri (pypi-uri "Flask-Markdown" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/dcolish/flask-markdown") + (commit version))) + (file-name (git-file-name name version)) (sha256 - (base32 - "0l32ikv4f7va926jlq4f7gx0xid247bhlxl6bd9av5dk8ljz1hyq")))) - (build-system python-build-system) + (base32 "1rqqmvjc4rjal6l4y3caxw9b3157pl923h4i1ihbm0gziqv3g2hl")))) + (build-system pyproject-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)) + (list + #:tests? #f ;Tests seem to be incompatible with latest python + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-version + (lambda _ + (substitute* "setup.py" + (("dev") + #$version))))))) + (propagated-inputs (list python-markdown python-flask)) + (native-inputs (list python-pynose python-setuptools)) (home-page "https://github.com/dcolish/flask-markdown") (synopsis "Small extension to help with using Markdown in Flask") (description