summaryrefslogtreecommitdiff
path: root/gnu/packages/python-web.scm
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-11-29 21:16:05 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-12-03 07:40:20 +0000
commit5e24377063e4a13d3e43608e507cb36df1a12661 (patch)
tree059235412066db0f2ec36f5b5e6d09aa55435927 /gnu/packages/python-web.scm
parentb0d88d259485cc013577a61f13a796a3e9f01899 (diff)
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 <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-web.scm')
-rw-r--r--gnu/packages/python-web.scm28
1 files changed, 18 insertions, 10 deletions
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 8d00adc981d..1c1aed557a4 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