guix_mirror_bot pushed a commit to branch master
in repository guix.
commit bff730995a0e6b1a780159ec0b259d052f7115db
Author: Nicolas Graves <[email protected]>
AuthorDate: Tue Aug 12 23:22:35 2025 +0200
gnu: python-pycups: Switch to pyproject.
* gnu/packages/cups.scm (python-pycups):
[source]: Switch to git-fetch.
[build-system]: Switch to pyproject-build-system.
[native-inputs]: Add python-setuptools, python-wheel.
Change-Id: I9bd66f866aaade04d97fa2203f6c93ab7def1009
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/cups.scm | 18 +++++++++++-------
1 file changed, 11 insertions(+), 7 deletions(-)
diff --git a/gnu/packages/cups.scm b/gnu/packages/cups.scm
index 8322818b77..996f039309 100644
--- a/gnu/packages/cups.scm
+++ b/gnu/packages/cups.scm
@@ -53,6 +53,7 @@
#:use-module (gnu packages polkit)
#:use-module (gnu packages pretty-print)
#:use-module (gnu packages python)
+ #:use-module (gnu packages python-build)
#:use-module (gnu packages python-xyz)
#:use-module (gnu packages qt)
#:use-module (gnu packages scanner)
@@ -61,6 +62,7 @@
#:use-module (guix build-system gnu)
#:use-module (guix build-system meson)
#:use-module (guix build-system python)
+ #:use-module (guix build-system pyproject)
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix gexp)
@@ -1081,17 +1083,19 @@ obtained and installed separately.")
(version "2.0.1")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "pycups" version ".tar.bz2"))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/zdohnal/pycups")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32
- "140c7073bkhx8w9qpaynllhynkkg0rzj3a4wjh9fnj15yvjlqhsp"))))
- (build-system python-build-system)
+ (base32 "0x2f48gz9wpmcdjh6dj0kmciil57cm89hp4kcsnvhmkvpwpm3b55"))))
+ (build-system pyproject-build-system)
(arguments
'(;; Tests require CUPS to be running
#:tests? #f))
- (inputs
- (list cups))
+ (inputs (list cups))
+ (native-inputs (list python-setuptools python-wheel))
(home-page "https://github.com/zdohnal/pycups")
(synopsis "Python bindings for libcups")
(description