From 64ba79d12b919caa6355c07aa30cb069eab0c021 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Sat, 18 Oct 2025 12:55:39 +0200 Subject: [PATCH] gnu: python-pyqrcode: Switch to pyproject. * gnu/packages/python-xyz.scm (python-pyqrcode): [properties, source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [arguments]: Set <#:test-backend>. [native-inputs]: Add python-pynose, python-pypng, python-setuptools. [home-page, description]: Improve style. Change-Id: If523d6420d760dcd571cc3841645a9ddcb24e817 Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-xyz.scm | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index d31cc5722dcf3a1fcba485fe9f3ed11c97ffec9e..e19c10fd083ad08a5e819c967166b389d1e7749d 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -15748,21 +15748,28 @@ approach.") (define-public python-pyqrcode (package (name "python-pyqrcode") - (version "1.2.1") + (properties '((commit . "674a77b5eaf850d063f518bd90c243ee34ad6b5d") + (revision . "0"))) + (version (git-version "1.2.1" + (assoc-ref properties 'revision) + (assoc-ref properties 'commit))) (source (origin - (method url-fetch) - (uri (pypi-uri "PyQRCode" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/mnooner256/pyqrcode") + (commit (assoc-ref properties 'commit)))) + (file-name (git-file-name name version)) (sha256 - (base32 - "1m9ln8k9v7dfbh1i81225hx5mdsh8mpf9g7r4wpbfmiyfcs7dgzx")))) - (build-system python-build-system) - (home-page - "https://github.com/mnooner256/pyqrcode") + (base32 "0ks4sqwcwsnb5r65z6zdfbir34f35sfv3agnlmcq1w36fya2y62m")))) + (build-system pyproject-build-system) + (arguments (list #:test-backend #~'nose)) + (native-inputs (list python-pynose python-pypng python-setuptools)) + (home-page "https://github.com/mnooner256/pyqrcode") (synopsis "QR code generator") (description - "Pyqrcode is a QR code generator written purely in Python with -SVG, EPS, PNG and terminal output.") + "Pyqrcode is a QR code generator written purely in Python with SVG, EPS, +PNG and terminal output.") (license license:bsd-3))) (define-public python-seaborn