~ruther/guix-local

b5bfa1369afc49db1cd7dd8bcaba4cd788f1714a — Nicolas Graves 4 months ago 22088e1
gnu: python-slugid: Switch to pyproject.

* gnu/packages/python-xyz.scm (python-slugid):
[build-system]: Switch to pyproject-build-system.
[arguments]: Replace <#:phases> by <#:test-backend>.
[native-inputs]: Add python-setuptools.  Replace python-nose by
python-pynose.
[description]: Improve style.

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

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +6 -13
@@ 21711,21 21711,14 @@ zipfile like as possible.")
        (file-name (git-file-name name version))
        (sha256
         (base32 "1h64p2jlqv6lsmw8h2j203kx3bhv72cwzpk5gdhsaamw30cp3h1i"))))
    (build-system python-build-system)
    (native-inputs (list python-nose))
    (arguments
      (list #:phases
        #~(modify-phases %standard-phases
            (replace 'check
              (lambda* (#:key inputs tests? #:allow-other-keys)
                (when tests?
                  ;; The project uses tox to run the tests via nose.
                  (invoke "nosetests" "-v" "test.py")))))))
    (build-system pyproject-build-system)
    (arguments (list #:test-backend #~'nose))
    (native-inputs (list python-pynose python-setuptools))
    (home-page "http://taskcluster.github.io/slugid.py")
    (synopsis "Module for Base64 encoded UUID v4 slugs")
    (description "This package provides a module for generating v4
UUIDs and encoding them into 22 character URL-safe base64 slug
representation.")
    (description
     "This package provides a module for generating v4 UUIDs and encoding them
into 22 character URL-safe base64 slug representation.")
    (license license:mpl2.0)))

(define-public python-rich