diff options
| author | Ghislain Vaillant <ghislain.vaillant@inria.fr> | 2026-08-30 17:54:47 +0200 |
|---|---|---|
| committer | Ghislain Vaillant <ghislain.vaillant@inria.fr> | 2026-08-30 17:54:47 +0200 |
| commit | ee85bc82a47a342ad18ec91cdf2b789fa33b136e (patch) | |
| tree | 53b923565a8f0e95384e95bb9260161ae2182680 | |
| parent | 9ee5bf6ce9f3d1cf18603f3e410bb4da6db23a90 (diff) | |
python-xyz: python-traits: Update to 7.1.0.
* guix-science/packages/python-xyz.scm (python-traits)
[source]: Switch to git, update to 7.1.0.
[arguments]<#:phases>: Set commit hash before build.
[native-inputs]: Add python-{cython,pytest}, remove python-sphinx.
| -rw-r--r-- | guix-science/packages/python-xyz.scm | 61 |
1 files changed, 35 insertions, 26 deletions
diff --git a/guix-science/packages/python-xyz.scm b/guix-science/packages/python-xyz.scm index da6a464..61a6729 100644 --- a/guix-science/packages/python-xyz.scm +++ b/guix-science/packages/python-xyz.scm | |||
| @@ -1484,34 +1484,43 @@ cleaning up argument parsing scripts.") | |||
| 1484 | (license license:expat))) | 1484 | (license license:expat))) |
| 1485 | 1485 | ||
| 1486 | (define-public python-traits | 1486 | (define-public python-traits |
| 1487 | (package | 1487 | ;; Requires commit hash when built from git. |
| 1488 | (name "python-traits") | 1488 | (let ((commit "eac9a203449f74f7ad18c95596e8a5a17ff433b3")) |
| 1489 | (version "7.0.2") | 1489 | (package |
| 1490 | (source | 1490 | (name "python-traits") |
| 1491 | (origin | 1491 | (version "7.1.0") |
| 1492 | ;; Build from upstream requires too much modification. | 1492 | (source |
| 1493 | (method url-fetch) | 1493 | (origin |
| 1494 | (uri (pypi-uri "traits" version)) | 1494 | ;; Build from upstream requires too much modification. |
| 1495 | (sha256 | 1495 | (method git-fetch) |
| 1496 | (base32 "1322f2gm49nyh5g2m4d6gkdny2szhl4l59g5bnbi2ffb15c52qx5")))) | 1496 | (uri (git-reference |
| 1497 | (build-system pyproject-build-system) | 1497 | (url "https://github.com/enthought/traits") |
| 1498 | (arguments | 1498 | (commit version))) |
| 1499 | (list | 1499 | (file-name (git-file-name name version)) |
| 1500 | #:test-backend | 1500 | (sha256 |
| 1501 | #~'unittest | 1501 | (base32 "1wg26gdlfvaf4i1c08dvrby4jjj7k0jlgiddpzgnkwx8psw2vv65")))) |
| 1502 | #:phases | 1502 | (build-system pyproject-build-system) |
| 1503 | #~(modify-phases %standard-phases | 1503 | (arguments |
| 1504 | (add-before 'check 'build-extensions | 1504 | (list |
| 1505 | (lambda _ | 1505 | #:phases |
| 1506 | (invoke "python" "setup.py" "build_ext" "--inplace")))))) | 1506 | #~(modify-phases %standard-phases |
| 1507 | (native-inputs (list python-setuptools python-sphinx)) | 1507 | (add-after 'unpack 'set-commit-hash |
| 1508 | (home-page "https://docs.enthought.com/traits") | 1508 | (lambda _ |
| 1509 | (synopsis "Observable typed attributes for Python classes") | 1509 | (substitute* "setup.py" |
| 1510 | (description | 1510 | (("^ARCHIVE_COMMIT_HASH = \".*\"") |
| 1511 | "The Traits library is designed to enhance object-oriented programming in | 1511 | (string-append "ARCHIVE_COMMIT_HASH = '" #$commit "'"))))) |
| 1512 | |||
| 1513 | (add-before 'check 'build-extensions | ||
| 1514 | (lambda _ | ||
| 1515 | (invoke "python" "setup.py" "build_ext" "--inplace")))))) | ||
| 1516 | (native-inputs (list python-cython python-pytest python-setuptools)) | ||
| 1517 | (home-page "https://docs.enthought.com/traits") | ||
| 1518 | (synopsis "Observable typed attributes for Python classes") | ||
| 1519 | (description | ||
| 1520 | "The Traits library is designed to enhance object-oriented programming in | ||
| 1512 | Python by providing a way to define and manage attributes of objects more | 1521 | Python by providing a way to define and manage attributes of objects more |
| 1513 | effectively.") | 1522 | effectively.") |
| 1514 | (license license:bsd-3))) | 1523 | (license license:bsd-3)))) |
| 1515 | 1524 | ||
| 1516 | (define-public python-traitsui | 1525 | (define-public python-traitsui |
| 1517 | (package | 1526 | (package |
