~ruther/guix-local

5e24377063e4a13d3e43608e507cb36df1a12661 — Nicolas Graves 2 months ago b0d88d2
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>
1 files changed, 18 insertions(+), 10 deletions(-)

M gnu/packages/python-web.scm
M gnu/packages/python-web.scm => gnu/packages/python-web.scm +18 -10
@@ 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