~ruther/guix-local

029353d5dff4ab22378fb6302798deb0ca7da8a1 — Nicolas Graves 7 months ago 4c0632b
gnu: python-sphinxext-opengraph: Switch to pyproject.

* gnu/packages/sphinx.scm (python-sphinxext-opengraph):
[build-system]: Switch to pyproject-build-system.
[arguments]<#:phases>: Remove 'check phase replacement.  Add phase
'set-version.
[native-inputs]: Add python-setuptools.

Change-Id: I8e76fb1ec9ac494d4a345e61660e974f2397ca9f
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
1 files changed, 10 insertions(+), 8 deletions(-)

M gnu/packages/sphinx.scm
M gnu/packages/sphinx.scm => gnu/packages/sphinx.scm +10 -8
@@ 1190,15 1190,17 @@ translate and to apply translation to Sphinx generated document.")
       (file-name (git-file-name name version))
       (sha256
        (base32 "1wrgpan9z65fv4hbvisz4sypc4w5ammnxkyn5lhr43wdr6b967k1"))))
    (build-system python-build-system)
    (build-system pyproject-build-system)
    (arguments
     `(#:phases
       (modify-phases %standard-phases
         (replace 'check
           (lambda* (#:key tests? #:allow-other-keys)
             (when tests?
               (invoke "pytest" "-vv")))))))
    (native-inputs (list python-beautifulsoup4 python-pytest python-sphinx))
     (list
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'set-version
            (lambda _
              (substitute* "setup.py"
               (("main") #$version)))))))
    (native-inputs (list python-beautifulsoup4 python-pytest python-sphinx
                         python-setuptools))
    (home-page "https://github.com/wpilibsuite/sphinxext-opengraph")
    (synopsis "Sphinx Extension to enable OpenGraph support")
    (description