summaryrefslogtreecommitdiff
path: root/gnu/packages/python-xyz.scm
diff options
context:
space:
mode:
authorHugo Buddelmeijer <hugo@buddelmeijer.nl>2025-08-24 10:42:43 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-09-03 23:34:40 +0100
commita7780fbcc17a7cd7ec76e0e21d9aff54f6078c5b (patch)
tree39e6cc469dd059821e20e6668169351a6fa20831 /gnu/packages/python-xyz.scm
parent578350017b3cd301949bfb1c0a36de83c2ca13d6 (diff)
gnu: python-titlecase: Switch to pyproject.
* gnu/packages/python-xyz.scm (python-titlecase): [build-system]: Switch to pyproject-build-system. [native-inputs]: Add python-setuptools-next. [arguments] <phases>: Use custom 'check. Change-Id: I0c52c3f815d0c7a44eed92b4cc9c5dbf25be23d0 Modified-by: Sharlatan Hellseher <sharlatanus@gmail.com> Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r--gnu/packages/python-xyz.scm12
1 files changed, 11 insertions, 1 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index efe7f022fb..bb051c1418 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -32643,7 +32643,17 @@ an upload option to send your work back to the platform.")
(sha256
(base32
"1x9myq3rlbw6wh946ncch8px7wyabhzacy2fjji13nmvrivs50vx"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? test-flags #:allow-other-keys)
+ (when tests?
+ (apply invoke "python" "-m" "unittest" test-flags)))))))
+ (native-inputs
+ (list python-setuptools-next))
(home-page "https://github.com/ppannuto/python-titlecase")
(synopsis "Capitalize strings similar to book titles")
(description