~ruther/guix-local

b1ac5682bf4d65b80c9cb556bcb9e32833d5db2c — Sharlatan Hellseher 1 year, 2 months ago 9079dc6
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
2 files changed, 43 insertions(+), 42 deletions(-)

M gnu/packages/check.scm
M gnu/packages/python-check.scm
M gnu/packages/check.scm => gnu/packages/check.scm +0 -42
@@ 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

M gnu/packages/python-check.scm => gnu/packages/python-check.scm +43 -0
@@ 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")