summaryrefslogtreecommitdiff
path: root/gnu/packages/python-xyz.scm
diff options
context:
space:
mode:
authorVinicius Monego <monego@posteo.net>2025-06-21 21:11:46 -0300
committerVinicius Monego <monego@posteo.net>2025-06-21 23:27:34 -0300
commit4a47bbe15ed4caee967e365474b658ccf2ee20f8 (patch)
treeabaab34bef684bba151ed140e81bd2d07110c492 /gnu/packages/python-xyz.scm
parent0b84e1ef0d27b84be3432793c6be40886a98de0a (diff)
gnu: python-nestedtext: Enable tests.
* gnu/packages/python-xyz.scm (python-nestedtext)[source]: Fetch from GitHub. [arguments]: Remove '#:tests? #f'. <#:test-flags>: Skip tests that require not yet packaged libraries. [native-inputs]: Add python-pytest. Change-Id: Ic0d8261dc9cb97b58536fa086ab9eca8e73489d0
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r--gnu/packages/python-xyz.scm24
1 files changed, 16 insertions, 8 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index b221ea211f..a9c350a749 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -34565,16 +34565,24 @@ Features
(name "python-nestedtext")
(version "3.7")
(source
- (origin
- (method url-fetch)
- (uri (pypi-uri "nestedtext" version))
- (sha256
- (base32
- "0vbribl3ja4ldjmiw1hv8a4f5r8hx2v7naskxfwkjlaki4kzwn0a"))))
+ (origin
+ (method git-fetch) ; no tests in PyPI release
+ (uri (git-reference
+ (url "https://github.com/KenKundert/nestedtext")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0yqarfv6jzl41i44mjn0g4c87g47j819py6gbsfi3fdk96c95nll"))))
(build-system pyproject-build-system)
(arguments
- `(#:tests? #f)) ; PyPI tarball lacks tests
- (native-inputs (list python-flit-core))
+ (list
+ ;; XXX: Tests below need some not yet packaged Python libraries.
+ #:test-flags #~(list "--ignore" "examples/"
+ "--ignore" "tests/test_nestedtext.py"
+ "-k" (string-append
+ "not techniques.rst"
+ " and not nestedtext.nestedtext.dumps"))))
+ (native-inputs (list python-flit-core python-pytest))
(propagated-inputs
(list python-inform))
(home-page "https://nestedtext.org")