diff options
author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-04-24 04:34:35 +0100 |
---|---|---|
committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-04-24 04:53:42 +0100 |
commit | b1ac5682bf4d65b80c9cb556bcb9e32833d5db2c (patch) | |
tree | 7f7a24e3e988419b51f746d0e9b9a449f1c12ff4 | |
parent | 9079dc6c6161ac515d96c3e778740a860aa7dc8a (diff) | |
download | guix-b1ac5682bf4d65b80c9cb556bcb9e32833d5db2c.tar.gz guix-b1ac5682bf4d65b80c9cb556bcb9e32833d5db2c.zip |
gnu: python-hypothesmith: Move to python-check.
* gnu/packages/check.scm (python-hypothesmith): Move from here ...
* gnu/packages/python-check.scm: ... to here.
Change-Id: Ib894b5fb76aa8db6fc4a343e0f28d90f0c74fc72
-rw-r--r-- | gnu/packages/check.scm | 42 | ||||
-rw-r--r-- | gnu/packages/python-check.scm | 43 |
2 files changed, 43 insertions, 42 deletions
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index 3ee43c2dc9..29ed650335 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -2834,48 +2834,6 @@ seamlessly into your existing Python unit testing work flow.") (define-deprecated python-hypothesis-next python-hypothesis) (export python-hypothesis-next) -(define-public python-hypothesmith - (package - (name "python-hypothesmith") - (version "0.2.0") - (source - (origin - (method url-fetch) - (uri (pypi-uri "hypothesmith" version)) - (sha256 - (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 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 - "This package contains hypothesis strategies for generating Python -programs, something like CSmith, a random generator of C programs.") - (license license:mpl2.0))) - ;; WARNING: This package is a dependency of mesa. (define-public python-lit (package diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index 19c422baa7..2c794c1205 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -28,6 +28,7 @@ ;;; Copyright © 2024 Markku Korkeala <markku.korkeala@iki.fi> ;;; Copyright © 2025 Evgeny Pisemsky <mail@pisemsky.site> ;;; Copyright © 2025 Florent Pruvost <florent.pruvost@inria.fr> +;;; Copyright © 2025 Nicolas Graves <ngraves@ngraves.fr> ;;; ;;; This file is part of GNU Guix. ;;; @@ -778,6 +779,48 @@ Functions exposed by the standard library’s @code{time}, @code{datetime} and Python software under test, when they make an HTTP query.") (license license:asl2.0))) +(define-public python-hypothesmith + (package + (name "python-hypothesmith") + (version "0.2.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "hypothesmith" version)) + (sha256 + (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 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 + "This package contains hypothesis strategies for generating Python +programs, something like CSmith, a random generator of C programs.") + (license license:mpl2.0))) + (define-public python-icontract (package (name "python-icontract") |