From 0a1c8f797c94e40f034f317bca42b52fe9c42f5e Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Tue, 28 Oct 2025 15:00:09 +0100 Subject: [PATCH] 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 --- gnu/packages/python-xyz.scm | 46 ++++++++++++++++++++++--------------- 1 file changed, 28 insertions(+), 18 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index fcf4a2dcc4ec0352d51f7a353e2f5d8a9f9a920a..acf8ae315f751328b6c552ef6fedb074d172ae58 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -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