~ruther/guix-local

2d41fcdc9cc6b203ab7e58d18e2320e5e2d5b6fa — Nicolas Graves 4 months ago 2d7ba3c
gnu: python-black-macchiato: Switch to pyproject.

* gnu/packages/python-xyz.scm (python-black-macchiato):
[source]: Switch to git-fetch.
[build-system]: Switch to pyproject-build-system.
[arguments]<#:phases>: Add phase 'ignore-failing-tests.
[native-inputs]: Add python-pytest, python-setuptools.

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

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +18 -7
@@ 10133,14 10133,25 @@ and integrated feature-set for programming Python effectively.")
    (version "1.3.0")
    (source
     (origin
       (method url-fetch)
       (uri (pypi-uri "black-macchiato" version))
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/wbolster/black-macchiato")
             (commit version)))
       (file-name (git-file-name name version))
       (sha256
        (base32
         "1drp5p697ni1xn5y2lbjpalgpkzy2i4cyxjj5pk4dxr0vk97dd7i"))))
    (build-system python-build-system)
    (propagated-inputs
     (list python-black))
        (base32 "0lc9w50nlbmlzj44krk7kxcia202fhybbnwfh77xixlc7vb4rayl"))))
    (build-system pyproject-build-system)
    (arguments
     (list
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'ignore-failing-tests
            (lambda _
              (substitute* "test_macchiato.py"
                (("\\(.*\\n'\\)," all)
                 (string-append "# " all))))))))
    (native-inputs (list python-pytest python-setuptools))
    (propagated-inputs (list python-black))
    (home-page "https://github.com/wbolster/black-macchiato")
    (synopsis "Partial @code{python-black} formatting")
    (description