gnu: Add python-itanium-demangler.

* gnu/packages/python-xyz.scm (python-itanium-demangler): New variable.

Signed-off-by: jgart <jgart@dismail.de>
Change-Id: I6c198bfb174a76e7d1746d5052e1dec938a4b5b9
This commit is contained in:
Sören Tempel 2024-07-04 22:05:10 +02:00 committed by jgart
parent 13f0f52314
commit 789c403794
No known key found for this signature in database
GPG key ID: A52AA2B477B6DD35

View file

@ -33800,6 +33800,38 @@ (define-public python-opcodes
and BMI2).")
(license license:bsd-2))))
(define-public python-itanium-demangler
(package
(name "python-itanium-demangler")
(version "1.1")
(source
(origin
(method git-fetch)
(uri (git-reference
;; PyPI only provides wheels and no source code.
(url "https://github.com/whitequark/python-itanium_demangler")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1q47aqm5z3db6pasdzw05d6236vnb8hnapfy88fcmn9dr5ym98r3"))))
(build-system pyproject-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(with-directory-excursion "tests"
(invoke "python" "-m" "unittest"))))))))
(home-page "https://github.com/whitequark/python-itanium_demangler/")
(synopsis "Pure Python Itanium C++ ABI demangler")
(description
"This Python module provides an implementation of the Itanium C++ ABI symbol
mangling language. The demangler generates an abstract syntax tree from
mangled symbols, which can be used for directly extracting type information.")
(license license:bsd-0)))
(define-public python-peachpy
;; There is no tag in this repo.
(let ((commit "913d74c35a6b1d330e90bfc055208ce5b06b35a0")