diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-04-22 16:00:36 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-04-24 04:53:41 +0100 |
| commit | 8a28bb5a98c9ee80544548bae964edc60dd3d2f7 (patch) | |
| tree | df3a08397612e750c193c5483a59a38d6a7187f0 | |
| parent | 5d81b890db37a6f8fdd10721572430638cfb1d2f (diff) | |
gnu: python-hypothesmith: Update to 0.2.0.
* gnu/packages/check.scm (python-hypothesmith): Update to 0.2.0.
[build-system]: Switch to pyproject-build-system.
[arguments]<test-flags>: Ignore failing tests.
<phases>: Add 'patch-lark-dependency test.
[propagated-inputs]: Replace python-lark-parser by python-lark.
[native-inputs]: Add python-black, python-parso, python-pytest,
python-pytest-cov, python-setuptools, python-wheel.
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
| -rw-r--r-- | gnu/packages/check.scm | 31 |
1 files changed, 26 insertions, 5 deletions
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index 5238fe4e319..3ee43c2dc90 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -2837,17 +2837,38 @@ seamlessly into your existing Python unit testing work flow.") (define-public python-hypothesmith (package (name "python-hypothesmith") - (version "0.1.8") + (version "0.2.0") (source (origin (method url-fetch) (uri (pypi-uri "hypothesmith" version)) (sha256 - (base32 - "02j101m5grjrbvrgjap17jsxd1hgawkylmyswcn33vf42mxh9zzr")))) - (build-system python-build-system) + (base32 "08kr9p6hjm3ys87k1k3l79cmf936qbhn21ab8zadsvnp0gyv7dqg")))) + (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-parser python-libcst-minimal)) + (list python-hypothesis python-lark python-libcst-minimal)) + (native-inputs + (list python-black + python-parso + python-pytest + python-pytest-cov + python-setuptools + python-wheel)) (home-page "https://github.com/Zac-HD/hypothesmith") (synopsis "Strategies for generating Python programs") (description |
