summaryrefslogtreecommitdiff
path: root/gnu/packages/python-check.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/python-check.scm')
-rw-r--r--gnu/packages/python-check.scm43
1 files changed, 43 insertions, 0 deletions
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")