diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-05-10 13:50:45 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-05-24 10:19:32 +0100 |
| commit | 4196b9da4ec5edc3a4e8039eb167a4dd2cf1aeac (patch) | |
| tree | 6f51b882af06211b9c6cb8c1d20f2a5cf7d5b2df /gnu | |
| parent | fde86f85d3c35d6eedb2e13cbd86bd5767b5b521 (diff) | |
gnu: python-pycifrw: Update to 5.0.1.
* gnu/packages/physics.scm (python-pycifrw): Update to 5.0.1.
[arguments] <test-flags>: Implement test logic as seen in project's
GitHub Actions file, deselect 5 problematic tests.
<phases>: Add 'copy-dictionaries phase; 'generate-sources fix Make
options; move custom 'check phase to <test-flags> as seen in project's
GitHub Actions file.
[propagated-inputs]: Add python-prettytable.
[native-inputs]: Add cif-core and python-pytest.
Change-Id: Idc5c2abed7dee3088c2707f7122cc160b748e2d7
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/physics.scm | 49 |
1 files changed, 36 insertions, 13 deletions
diff --git a/gnu/packages/physics.scm b/gnu/packages/physics.scm index 6249176bb63..5c342781eac 100644 --- a/gnu/packages/physics.scm +++ b/gnu/packages/physics.scm | |||
| @@ -398,32 +398,55 @@ not a GUI application.") | |||
| 398 | (define-public python-pycifrw | 398 | (define-public python-pycifrw |
| 399 | (package | 399 | (package |
| 400 | (name "python-pycifrw") | 400 | (name "python-pycifrw") |
| 401 | (version "4.4.6") | 401 | (version "5.0.1") |
| 402 | (source | 402 | (source |
| 403 | (origin | 403 | (origin |
| 404 | (method git-fetch) | 404 | (method git-fetch) |
| 405 | (uri (git-reference | 405 | (uri (git-reference |
| 406 | (url "https://github.com/jamesrhester/pycifrw.git") | 406 | (url "https://github.com/jamesrhester/pycifrw") |
| 407 | (commit version))) | 407 | (commit (string-append "v" version)))) |
| 408 | (sha256 | 408 | (sha256 |
| 409 | (base32 "0xda4vgm6dz6fhhrfv8y6igsc5kznlnv0j3yrwkbcd3qqv16ic6r")))) | 409 | (base32 "14qm472gzfblwph00vhv1fpyx0azfk4fba6fwzjh1z47pmapx7kg")))) |
| 410 | (build-system pyproject-build-system) | 410 | (build-system pyproject-build-system) |
| 411 | (arguments | 411 | (arguments |
| 412 | (list | 412 | (list |
| 413 | ;; tests: 220 passed, 1 skipped, 5 deselected, 3 xfailed, 13752 warnings | ||
| 414 | #:test-flags | ||
| 415 | #~(list | ||
| 416 | ;; AssertionError: False is not true | ||
| 417 | "--deselect=TestPyCIFRW.py::DDLmDicTestCase::testMandatory" | ||
| 418 | "--deselect=TestPyCIFRW.py::DDLmDicTestCase::testProhibited" | ||
| 419 | ;; AssertionError: assert '_atom_site.adp_type' == | ||
| 420 | ;; '_atom_site.ADP_type' | ||
| 421 | "--deselect=TestPyCIFRW.py::DicStructureTestCase::testCatObj2" | ||
| 422 | ;; KeyError: 'No such category,object in the dictionary: atom_site | ||
| 423 | ;; matrix_beta' | ||
| 424 | "--deselect=TestDrel.py::TestWithDict::test_fancy_packets" | ||
| 425 | "--deselect=TestDrel.py::TestWithDict::testCaptures" | ||
| 426 | "TestPyCIFRW.py" | ||
| 427 | "TestDrel.py") | ||
| 413 | #:phases | 428 | #:phases |
| 414 | #~(modify-phases %standard-phases | 429 | #~(modify-phases %standard-phases |
| 430 | ;; Steps are taken from project's .github/workflows/CI.yml file. | ||
| 431 | (add-after 'unpack 'copy-dictionaries | ||
| 432 | (lambda _ | ||
| 433 | (copy-recursively | ||
| 434 | (string-append #$(this-package-native-input "cif-core") | ||
| 435 | "/share/cif-core") | ||
| 436 | "tests/dictionaries"))) | ||
| 415 | (add-before 'build 'generate-sources | 437 | (add-before 'build 'generate-sources |
| 416 | (lambda _ | 438 | (lambda _ |
| 417 | (invoke "make" "-C" "src" "PYTHON=python3" "package") | 439 | (invoke "make" "-C" "src" "package")))))) |
| 418 | (invoke "make" "-C" "src/drel" "PYTHON=python3" "package"))) | ||
| 419 | (replace 'check | ||
| 420 | (lambda* (#:key tests? #:allow-other-keys) | ||
| 421 | (when tests? | ||
| 422 | (invoke "python3" "TestPyCIFRW.py"))))))) | ||
| 423 | (propagated-inputs | ||
| 424 | (list python-numpy python-ply)) | ||
| 425 | (native-inputs | 440 | (native-inputs |
| 426 | (list latex2html noweb python-setuptools)) | 441 | (list cif-core |
| 442 | latex2html | ||
| 443 | noweb | ||
| 444 | python-pytest | ||
| 445 | python-setuptools)) | ||
| 446 | (propagated-inputs | ||
| 447 | (list python-numpy | ||
| 448 | python-prettytable | ||
| 449 | python-ply)) | ||
| 427 | (home-page "https://github.com/jamesrhester/pycifrw") | 450 | (home-page "https://github.com/jamesrhester/pycifrw") |
| 428 | (synopsis "CIF file reader and writer") | 451 | (synopsis "CIF file reader and writer") |
| 429 | (description | 452 | (description |
