guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 1e4eaa3c4ae98eef1162fdcaa258d976e192b3d6
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sun Oct 12 21:50:55 2025 +0100
gnu: python-user-agents: Switch to pyproject.
* gnu/packages/python-xyz.scm (python-user-agents)[source]: Switch to
git-fetch containing test data.
[build-system]: Switch to pyproejct-build-system.
[arguments] <tests?>: Enable them.
<test-backend>: Use 'unittest.
[native-inputs]: Add python-setuptools.
Change-Id: I502dc4f634e72d06dfd6c9030bef82b2d2765fb9
---
gnu/packages/python-xyz.scm | 20 ++++++++++++--------
1 file changed, 12 insertions(+), 8 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index b27f708e45..088f87be45 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -15395,15 +15395,19 @@ toolkit. Use it to build trees of widgets.")
(name "python-user-agents")
(version "2.2.0")
(source
- (origin
- (method url-fetch)
- (uri (pypi-uri "user-agents" version))
- (sha256
- (base32
- "09mddriffm9rkwr30081fy9n3cn976ms8pwc8p8hhlxnilbjavfk"))))
- (build-system python-build-system)
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/selwin/python-user-agents")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0pcbjqj21c2ixhl414bh2h8khi8y1igzfpkyqwan1pakix0lq45a"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:tests? #f)) ;missing devices.json test file in
release
+ (list #:test-backend #~'unittest))
+ (native-inputs
+ (list python-setuptools))
(propagated-inputs
(list python-ua-parser))
(home-page "https://github.com/selwin/python-user-agents")