diff options
| author | Akiyoshi Suda <code@akiyoshisuda.com> | 2026-05-03 14:00:13 +0900 |
|---|---|---|
| committer | Nguyễn Gia Phong <cnx@loang.net> | 2026-05-11 14:39:36 +0900 |
| commit | bce3de8c333ddf5ec94bec6a1b197eb8d24a186b (patch) | |
| tree | e80becf4e8cfc92f249a7f1b650c3dc18654664f | |
| parent | 5b47e87694dd54a6a672872a56ec10978179639b (diff) | |
gnu: Add python-constraint2.
* gnu/packages/maths.scm (python-constraint2): New variable.
Change-Id: I436a0e664c0fae31efb18915246c6bfc2137f118
Merges: https://codeberg.org/guix/guix/pulls/8315
Reviewed-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Signed-off-by: Nguyễn Gia Phong <cnx@loang.net>
| -rw-r--r-- | gnu/packages/maths.scm | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index f4c6e4373f..3918d0b6d8 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -75,6 +75,7 @@ ;;; Copyright © 2026 Cayetano Santos <csantosb@inventati.org> ;;; Copyright © 2026 Peter Polidoro <peter@polidoro.io> ;;; Copyright © 2026 Luca Alloatti <luca-guix@f-si.org> +;;; Copyright © 2026 Akiyoshi Suda <code@akiyoshisuda.com> ;;; ;;; This file is part of GNU Guix. ;;; @@ -4574,6 +4575,45 @@ primes and prime k-tuplets up to 264.") self-contained C-extension for Python.") (license license:bsd-3))) +(define-public python-constraint2 + (package + (name "python-constraint2") + (version "2.5.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/python-constraint/python-constraint") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1y62jvgb5dm91abgfs3cy260y1lxiwpvirs378a3lj4mrlmrqdsm")))) + (build-system pyproject-build-system) + (arguments + (list + #:test-flags + #~(list "--ignore=tests/test_toml_file.py" ;release information tests + "--ignore=tests/test_util_benchmark.py") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'fix-pytest-config + (lambda _ + ;; Drop test coverage requirements + (substitute* "pyproject.toml" + (("--cov(-[^ ]*)?([ =][^ \"]*)?") ""))))))) + (native-inputs + (list python-cython + python-poetry-core ;actual build backend + python-pytest + python-setuptools)) ;required for cythonization + (home-page "https://python-constraint.github.io/python-constraint") + (synopsis "Constraint satisfaction problem resolver for Python") + (description + "The @code{python-constraint} module offers efficient solvers for +@url{https://en.wikipedia.org/wiki/Constraint_satisfaction_problem, constraint +satisfaction problems} over finite domains in an accessible Python package.") + (license license:bsd-3))) + (define-public python-cvxopt (package (name "python-cvxopt") |
