~ruther/guix-local

0a1c8f797c94e40f034f317bca42b52fe9c42f5e — Nicolas Graves 6 months ago 3bf77c8
gnu: python-pifpaf: Update to 3.4.0.

* gnu/packages/python-xyz.scm (python-pifpaf): Update to 3.4.0.
[source]: Switch to git-fetch.
[build-system]: Switch to pyproject-build-system.
[arguments]<#:phases>: Drop 'check phase replacement.  Add phase
'install-drivers.
[native-inputs]: Add python-setuptools and python-packaging.  Replace
python-os-testr by python-stestr.
[description]: Improve style.

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

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +28 -18
@@ 30195,22 30195,26 @@ Python.  It also provides some custom formatters and handlers.")
(define-public python-pifpaf
  (package
    (name "python-pifpaf")
    (version "3.1.5")
    (version "3.4.0")
    (source
     (origin
       (method url-fetch)
       (uri (pypi-uri "pifpaf" version))
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/jd/pifpaf")
             (commit version)))
       (file-name (git-file-name name version))
       (sha256
        (base32
         "19bdmxldc2m570isl7hbqgbb20si4sin7pi5fw8sv9py8dyv2s4n"))))
    (build-system python-build-system)
        (base32 "1mj41h5xrkx71d7g5di3ykd4bsbgr7x432zbp63majgjci86gmm9"))))
    (build-system pyproject-build-system)
    (arguments
     '(#:phases
       (modify-phases %standard-phases
         (replace 'check
           (lambda _
             (invoke "python" "setup.py" "testr" "--slowest"
                     "--testr-args=until-failure"))))))
     (list
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'install 'install-drivers
            (lambda* (#:key inputs outputs #:allow-other-keys)
              (let ((site (site-packages inputs outputs)))
                (copy-recursively "pifpaf/drivers"
                                (string-append site "/pifpaf/drivers/"))))))))
    (propagated-inputs
     (list python-click
           python-daiquiri


@@ 30220,14 30224,20 @@ Python.  It also provides some custom formatters and handlers.")
           python-psutil
           python-xattr))
    (native-inputs
     (list python-mock python-os-testr python-requests
           python-testrepository python-testtools))
     (list python-mock
           python-stestr
           python-packaging
           python-requests
           python-testrepository
           python-testtools
           python-setuptools))
    (home-page "https://github.com/jd/pifpaf")
    (synopsis "Tools and fixtures to manage daemons for testing in Python")
    (description "Pifpaf is a suite of fixtures and a command-line tool that
starts and stops daemons for a quick throw-away usage.  This is typically
useful when needing these daemons to run integration testing.  It originally
evolved from its precursor @code{overtest}.")
    (description
     "Pifpaf is a suite of fixtures and a command-line tool that starts and
stops daemons for a quick throw-away usage.  This is typically useful when
needing these daemons to run integration testing.  It originally evolved from
its precursor @code{overtest}.")
    (license license:asl2.0)))

(define-public python-pytest-check-links