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 /gnu | |
| 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>
Diffstat (limited to 'gnu')
| -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.") | |||
| 2837 | (define-public python-hypothesmith | 2837 | (define-public python-hypothesmith |
| 2838 | (package | 2838 | (package |
| 2839 | (name "python-hypothesmith") | 2839 | (name "python-hypothesmith") |
| 2840 | (version "0.1.8") | 2840 | (version "0.2.0") |
| 2841 | (source | 2841 | (source |
| 2842 | (origin | 2842 | (origin |
| 2843 | (method url-fetch) | 2843 | (method url-fetch) |
| 2844 | (uri (pypi-uri "hypothesmith" version)) | 2844 | (uri (pypi-uri "hypothesmith" version)) |
| 2845 | (sha256 | 2845 | (sha256 |
| 2846 | (base32 | 2846 | (base32 "08kr9p6hjm3ys87k1k3l79cmf936qbhn21ab8zadsvnp0gyv7dqg")))) |
| 2847 | "02j101m5grjrbvrgjap17jsxd1hgawkylmyswcn33vf42mxh9zzr")))) | 2847 | (build-system pyproject-build-system) |
| 2848 | (build-system python-build-system) | 2848 | (arguments |
| 2849 | (list | ||
| 2850 | #:test-flags | ||
| 2851 | #~(list "-k" | ||
| 2852 | (string-append | ||
| 2853 | ;; XXX: hypothesis.errors.Unsatisfiable | ||
| 2854 | "not test_source_code_from_libcst_node_type[MatchSingleton]" | ||
| 2855 | ;; XXX: Python/Black versions not as expected. | ||
| 2856 | " and not test_black_autoformatter_from_grammar")) | ||
| 2857 | #:phases | ||
| 2858 | #~(modify-phases %standard-phases | ||
| 2859 | (add-after 'unpack 'patch-lark-dependency | ||
| 2860 | (lambda _ | ||
| 2861 | (substitute* "setup.py" | ||
| 2862 | (("lark-parser>=[0-9.]*") "lark"))))))) | ||
| 2849 | (propagated-inputs | 2863 | (propagated-inputs |
| 2850 | (list python-hypothesis python-lark-parser python-libcst-minimal)) | 2864 | (list python-hypothesis python-lark python-libcst-minimal)) |
| 2865 | (native-inputs | ||
| 2866 | (list python-black | ||
| 2867 | python-parso | ||
| 2868 | python-pytest | ||
| 2869 | python-pytest-cov | ||
| 2870 | python-setuptools | ||
| 2871 | python-wheel)) | ||
| 2851 | (home-page "https://github.com/Zac-HD/hypothesmith") | 2872 | (home-page "https://github.com/Zac-HD/hypothesmith") |
| 2852 | (synopsis "Strategies for generating Python programs") | 2873 | (synopsis "Strategies for generating Python programs") |
| 2853 | (description | 2874 | (description |
