diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-10-27 22:35:22 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-10-28 20:27:25 +0000 |
| commit | 14dcd29c10ac47585dd7868f0149d287b669b825 (patch) | |
| tree | 134f29c38483b28b8c34db638048e478f7ac5a8a /gnu/packages/python-xyz.scm | |
| parent | b9420a2e9590dfb22144785698a935182b0b6fa0 (diff) | |
gnu: python-astor: Update to 0.8.1-0.df09001.
* gnu/packages/python-xyz.scm (python-astor): Update to 0.8.1-0.df09001.
[source]: Switch to git-fetch.
[build-system]: Switch to pyproject-build-system.
[arguemnts]<#:test-flags>: Ignore failing tests.
[native-inputs]: Add python-pytest, python-setuptools.
[description]: Improve style.
Change-Id: If59cb53040d1cf402a652c14d0c45d613b92eb85
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-xyz.scm')
| -rw-r--r-- | gnu/packages/python-xyz.scm | 31 |
1 files changed, 21 insertions, 10 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index eb857c32676..397cccee343 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -28422,21 +28422,32 @@ of Python libraries for building Python applications.") (define-public python-astor (package (name "python-astor") - (version "0.8.1") + (properties '((commit . "df09001112f079db54e7c5358fa143e1e63e74c4") + (revision . "0"))) + (version (git-version "0.8.1" + (assoc-ref properties 'revision) + (assoc-ref properties 'commit))) (source (origin - (method url-fetch) - (uri (pypi-uri "astor" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/berkerpeksag/astor") + (commit (assoc-ref properties 'commit)))) + (file-name (git-file-name name version)) (sha256 - (base32 - "0ppscdzzvxpznclkmhhj53iz314x3pfv4yc7c6gwxqgljgdgyvka")))) - (build-system python-build-system) - ;; FIXME: There are two errors and two test failures. - (arguments `(#:tests? #f)) + (base32 "0ymj0n23b6b4qc6x8ycysh2dipdry5a3gakcaf8nravzp5ma2psl")))) + (build-system pyproject-build-system) + (arguments + (list + ;; FIXME: Unclear why this test fails. + #:test-flags #~(list "--deselect=\ +tests/test_rtrip.py::RtripTestCase::test_convert_stdlib"))) + (native-inputs (list python-pytest python-setuptools)) (home-page "https://github.com/berkerpeksag/astor") (synopsis "Read and write Python ASTs") - (description "Astor is designed to allow easy manipulation of Python -source via the Abstract Syntax Tree.") + (description + "Astor is designed to allow easy manipulation of Python source via the +Abstract Syntax Tree.") (license license:bsd-3))) (define-public python-astunparse |
