summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-04-24 04:34:35 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-04-24 04:53:42 +0100
commitb1ac5682bf4d65b80c9cb556bcb9e32833d5db2c (patch)
tree7f7a24e3e988419b51f746d0e9b9a449f1c12ff4 /gnu
parent9079dc6c6161ac515d96c3e778740a860aa7dc8a (diff)
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
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/check.scm42
-rw-r--r--gnu/packages/python-check.scm43
2 files changed, 43 insertions, 42 deletions
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index 3ee43c2dc90..29ed6503351 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -2834,48 +2834,6 @@ seamlessly into your existing Python unit testing work flow.")
2834(define-deprecated python-hypothesis-next python-hypothesis) 2834(define-deprecated python-hypothesis-next python-hypothesis)
2835(export python-hypothesis-next) 2835(export python-hypothesis-next)
2836 2836
2837(define-public python-hypothesmith
2838 (package
2839 (name "python-hypothesmith")
2840 (version "0.2.0")
2841 (source
2842 (origin
2843 (method url-fetch)
2844 (uri (pypi-uri "hypothesmith" version))
2845 (sha256
2846 (base32 "08kr9p6hjm3ys87k1k3l79cmf936qbhn21ab8zadsvnp0gyv7dqg"))))
2847 (build-system pyproject-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")))))))
2863 (propagated-inputs
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))
2872 (home-page "https://github.com/Zac-HD/hypothesmith")
2873 (synopsis "Strategies for generating Python programs")
2874 (description
2875 "This package contains hypothesis strategies for generating Python
2876programs, something like CSmith, a random generator of C programs.")
2877 (license license:mpl2.0)))
2878
2879;; WARNING: This package is a dependency of mesa. 2837;; WARNING: This package is a dependency of mesa.
2880(define-public python-lit 2838(define-public python-lit
2881 (package 2839 (package
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 19c422baa78..2c794c1205e 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -28,6 +28,7 @@
28;;; Copyright © 2024 Markku Korkeala <markku.korkeala@iki.fi> 28;;; Copyright © 2024 Markku Korkeala <markku.korkeala@iki.fi>
29;;; Copyright © 2025 Evgeny Pisemsky <mail@pisemsky.site> 29;;; Copyright © 2025 Evgeny Pisemsky <mail@pisemsky.site>
30;;; Copyright © 2025 Florent Pruvost <florent.pruvost@inria.fr> 30;;; Copyright © 2025 Florent Pruvost <florent.pruvost@inria.fr>
31;;; Copyright © 2025 Nicolas Graves <ngraves@ngraves.fr>
31;;; 32;;;
32;;; This file is part of GNU Guix. 33;;; This file is part of GNU Guix.
33;;; 34;;;
@@ -778,6 +779,48 @@ Functions exposed by the standard library’s @code{time}, @code{datetime} and
778Python software under test, when they make an HTTP query.") 779Python software under test, when they make an HTTP query.")
779 (license license:asl2.0))) 780 (license license:asl2.0)))
780 781
782(define-public python-hypothesmith
783 (package
784 (name "python-hypothesmith")
785 (version "0.2.0")
786 (source
787 (origin
788 (method url-fetch)
789 (uri (pypi-uri "hypothesmith" version))
790 (sha256
791 (base32 "08kr9p6hjm3ys87k1k3l79cmf936qbhn21ab8zadsvnp0gyv7dqg"))))
792 (build-system pyproject-build-system)
793 (arguments
794 (list
795 #:test-flags
796 #~(list "-k"
797 (string-append
798 ;; XXX: hypothesis.errors.Unsatisfiable
799 "not test_source_code_from_libcst_node_type[MatchSingleton]"
800 ;; XXX: Python/Black versions not as expected.
801 " and not test_black_autoformatter_from_grammar"))
802 #:phases
803 #~(modify-phases %standard-phases
804 (add-after 'unpack 'patch-lark-dependency
805 (lambda _
806 (substitute* "setup.py"
807 (("lark-parser>=[0-9.]*") "lark")))))))
808 (propagated-inputs
809 (list python-hypothesis python-lark python-libcst-minimal))
810 (native-inputs
811 (list python-black
812 python-parso
813 python-pytest
814 python-pytest-cov
815 python-setuptools
816 python-wheel))
817 (home-page "https://github.com/Zac-HD/hypothesmith")
818 (synopsis "Strategies for generating Python programs")
819 (description
820 "This package contains hypothesis strategies for generating Python
821programs, something like CSmith, a random generator of C programs.")
822 (license license:mpl2.0)))
823
781(define-public python-icontract 824(define-public python-icontract
782 (package 825 (package
783 (name "python-icontract") 826 (name "python-icontract")