diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-01-02 11:44:58 +0000 |
|---|---|---|
| committer | Rutherther <rutherther@ditigal.xyz> | 2026-01-25 21:20:15 +0100 |
| commit | bbc241a1a43d57db759433d041c980cbbc5d4806 (patch) | |
| tree | 5e562f358d37b83853aa587590c3d70240e08924 /gnu/packages/python-check.scm | |
| parent | 3de553049df74a2d2839f618dbb1dd7aa2d51839 (diff) | |
gnu: python-crosshair: Update to 0.0.101.
* gnu/packages/python-check.scm (python-crosshair): Update to 0.0.101.
[arguments] <test-flags>: Rework skipped tests, pass more.
<phases>: Remove 'fix-dependencies; add 'relax-requirements.
[native-inputs]: Remove python-wheel.
[propagated-inputs]: Add python-pygls.
Change-Id: I5b9c84d165c09ce62d364dbbd2da7108dc2eda1c
Signed-off-by: Rutherther <rutherther@ditigal.xyz>
Diffstat (limited to 'gnu/packages/python-check.scm')
| -rw-r--r-- | gnu/packages/python-check.scm | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index 58bdf79a923..51d555e6635 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm | |||
| @@ -636,32 +636,35 @@ output.") | |||
| 636 | (define-public python-crosshair | 636 | (define-public python-crosshair |
| 637 | (package | 637 | (package |
| 638 | (name "python-crosshair") | 638 | (name "python-crosshair") |
| 639 | (version "0.0.86") | 639 | (version "0.0.101") |
| 640 | (source | 640 | (source |
| 641 | (origin | 641 | (origin |
| 642 | (method url-fetch) | 642 | (method url-fetch) |
| 643 | (uri (pypi-uri "crosshair_tool" version)) | 643 | (uri (pypi-uri "crosshair_tool" version)) |
| 644 | (sha256 | 644 | (sha256 |
| 645 | (base32 "19zrv6gsap0qwn4rrs1wwajg0gkq7ys8qijsilmjrhc73dylgl72")))) | 645 | (base32 "10vrfrwmxgvfxcqz284xf40cpr3an788bbwsvi3lnd0v467b2vn3")))) |
| 646 | (build-system pyproject-build-system) | 646 | (build-system pyproject-build-system) |
| 647 | (arguments | 647 | (arguments |
| 648 | (list | 648 | (list |
| 649 | ;; tests: 12229 passed, 12 skipped, 3 xfailed, 84 warnings | ||
| 649 | #:test-flags | 650 | #:test-flags |
| 650 | #~(list "--numprocesses" (number->string (parallel-job-count)) | 651 | #~(list "--numprocesses" (number->string (min 8 (parallel-job-count))) |
| 651 | ;; check_examples_test.py contains failing tests that | 652 | ;; check_examples_test.py contains failing tests that |
| 652 | ;; show what happens if a counterexample is found. | 653 | ;; show what happens if a counterexample is found. |
| 653 | "--ignore=crosshair/examples/check_examples_test.py" | 654 | "--ignore=crosshair/examples/check_examples_test.py" |
| 654 | "--ignore=crosshair/lsp_server_test.py") ;requires pygls | 655 | ;; AttributeError: 'ArithRef' object has no attribute 'as_long' |
| 656 | "--deselect=crosshair/statespace_test.py::test_model_value_to_python_ArithRef" | ||
| 657 | ;; AssertionError: Got MessageType.CANNOT_CONFIRM instead of | ||
| 658 | ;; MessageType.CONFIRMED (use `pytest -v` to show trace) | ||
| 659 | "--deselect=crosshair/register_contract_test.py::test_register_numpy_randint") | ||
| 655 | #:phases | 660 | #:phases |
| 656 | #~(modify-phases %standard-phases | 661 | #~(modify-phases %standard-phases |
| 657 | (add-after 'unpack 'fix-dependencies | 662 | (add-after 'unpack 'relax-requirements |
| 658 | (lambda _ | 663 | (lambda _ |
| 659 | (substitute* "setup.py" | 664 | (substitute* "setup.py" |
| 660 | ;; pygls is only used by crosshair/lsp_server.py. | 665 | ;; For some reason Python version is not set properly or can't |
| 661 | (("pygls>=1.0.0") "") | 666 | ;; be identified. |
| 662 | ;; 'sanity-check fails for z3-solver, although it is | 667 | ((".*z3-solver.*") "")))) |
| 663 | ;; included in 'propagated-inputs. | ||
| 664 | (("z3-solver>=4.13.0.0") "")))) | ||
| 665 | (add-before 'check 'set-test-env | 668 | (add-before 'check 'set-test-env |
| 666 | (lambda _ | 669 | (lambda _ |
| 667 | (setenv "PYTHONHASHSEED" "0")))))) ;tests rely on this value | 670 | (setenv "PYTHONHASHSEED" "0")))))) ;tests rely on this value |
| @@ -672,12 +675,11 @@ output.") | |||
| 672 | python-numpy | 675 | python-numpy |
| 673 | python-pytest | 676 | python-pytest |
| 674 | python-pytest-xdist | 677 | python-pytest-xdist |
| 675 | python-setuptools | 678 | python-setuptools)) |
| 676 | python-wheel)) | ||
| 677 | (propagated-inputs | 679 | (propagated-inputs |
| 678 | (list python-importlib-metadata | 680 | (list python-importlib-metadata |
| 679 | python-packaging | 681 | python-packaging |
| 680 | ;; python-pygls | 682 | python-pygls |
| 681 | python-typeshed-client | 683 | python-typeshed-client |
| 682 | python-typing-inspect | 684 | python-typing-inspect |
| 683 | python-typing-extensions | 685 | python-typing-extensions |
