summaryrefslogtreecommitdiff
path: root/gnu/packages/python-check.scm
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-08-05 14:37:05 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-09-25 09:36:15 +0100
commit961d2ad026414df77799586790b749eb00afb000 (patch)
tree862cb644ed159753e22451d29870345b9a851e97 /gnu/packages/python-check.scm
parentb164253191a60c62102e55e010859f8baa352547 (diff)
gnu: python-hypothesmith: Update to 0.3.3.
* gnu/packages/python-check.scm (python-hypothesmith): Update to 0.3.3. [arguments] <test-flags>: Run tests in parallel, supported upstream. <phases>: Remove 'patch-lark-dependency. [native-inputs]: Remove python-wheel; add python-pytest-xdist. Change-Id: I4deacf53ebec2601c5b6ff6e5c28f6ec66f0a67b
Diffstat (limited to 'gnu/packages/python-check.scm')
-rw-r--r--gnu/packages/python-check.scm34
1 files changed, 15 insertions, 19 deletions
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index bc6650bb310..c25de7dad50 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -933,38 +933,34 @@ Python software under test, when they make an HTTP query.")
(define-public python-hypothesmith
(package
(name "python-hypothesmith")
- (version "0.2.0")
+ (version "0.3.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "hypothesmith" version))
(sha256
- (base32 "08kr9p6hjm3ys87k1k3l79cmf936qbhn21ab8zadsvnp0gyv7dqg"))))
+ (base32 "05hpr3iqqsrfvkzdn7wjxp92hjxmin3pch96fn4mvs68sq14ihcn"))))
(build-system pyproject-build-system)
(arguments
(list
#:test-flags
- #~(list "-k"
- (string-append
- ;; XXX: hypothesis.errors.Unsatisfiable
- "not test_source_code_from_libcst_node_type[MatchSingleton]"
- ;; XXX: Python/Black versions not as expected.
- " and not test_black_autoformatter_from_grammar"))
- #:phases
- #~(modify-phases %standard-phases
- (add-after 'unpack 'patch-lark-dependency
- (lambda _
- (substitute* "setup.py"
- (("lark-parser>=[0-9.]*") "lark")))))))
- (propagated-inputs
- (list python-hypothesis python-lark python-libcst-minimal))
+ #~(list "--numprocesses" (number->string (parallel-job-count))
+ "-k" (string-append
+ ;; XXX: hypothesis.errors.Unsatisfiable
+ "not test_source_code_from_libcst_node_type[MatchSingleton]"
+ ;; XXX: Python/Black versions not as expected.
+ " and not test_black_autoformatter_from_grammar"))))
(native-inputs
- (list python-black
+ (list python-black ;hard requirements to run tests
python-parso
python-pytest
python-pytest-cov
- python-setuptools
- python-wheel))
+ python-pytest-xdist
+ python-setuptools))
+ (propagated-inputs
+ (list python-hypothesis
+ python-lark
+ python-libcst-minimal))
(home-page "https://github.com/Zac-HD/hypothesmith")
(synopsis "Strategies for generating Python programs")
(description