summaryrefslogtreecommitdiff
path: root/gnu/packages/python-xyz.scm
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-10-12 21:50:55 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-10-13 11:57:30 +0100
commit1e4eaa3c4ae98eef1162fdcaa258d976e192b3d6 (patch)
tree9c295ce84179ebaeb114e4eff50c84338f37954e /gnu/packages/python-xyz.scm
parentbdc386e135e198a3a2ea2f813540bbd37256c4f7 (diff)
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
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r--gnu/packages/python-xyz.scm20
1 files 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")