oom pushed a commit to branch c++-team
in repository guix.
commit cacc53ea888ef7815dd9be14e6fdf442621ddb07
Author: Greg Hogan <[email protected]>
AuthorDate: Wed Apr 23 18:35:55 2025 +0000
gnu: python-lief: Update to 0.16.5.
* gnu/packages/python-xyz.scm (python-lief): Update to 0.16.5.
[build-system]: Change to pyproject-build-system.
[native-inputs]: Replace cmake with cmake-minimal.
[propagated-inputs]: Add python-pydantic-2, python-pydantic-core,
python-scikit-build-core.
[arguments]<#:phases>: Remove 'build phase and add phase to switch to
changed api directory.
Change-Id: Ida0647d7c9976347d28c6d191da6cbde392d87ef
---
gnu/packages/python-xyz.scm | 25 ++++++++++++++-----------
1 file changed, 14 insertions(+), 11 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index c519bcdd33..0fc26f3dcb 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -39501,7 +39501,7 @@ platform using the ActivityPub protocol.")
(define-public python-lief
(package
(name "python-lief")
- (version "0.12.3")
+ (version "0.16.5")
(source (origin
(method git-fetch)
(uri (git-reference
@@ -39510,19 +39510,22 @@ platform using the ActivityPub protocol.")
(file-name (git-file-name name version))
(sha256
(base32
- "11i6hqmcjh56y554kqhl61698n9v66j2qk1c1g63mv2w07h2z661"))))
- (build-system python-build-system)
- (native-inputs (list cmake))
+ "1wq57xgnvpqpjnld03a095wb0fjl719sqrg51n80dv0lx0868n2z"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list cmake-minimal
+ ninja))
+ (propagated-inputs
+ (list python-pydantic-2
+ python-pydantic-core
+ python-scikit-build-core))
(arguments
(list
#:tests? #f ;needs network
- #:phases #~(modify-phases %standard-phases
- (replace 'build
- (lambda _
- (invoke
- "python" "setup.py" "--sdk" "build"
- (string-append
- "-j" (number->string (parallel-job-count)))))))))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'chdir
+ (lambda _ (chdir "api/python"))))))
(home-page "https://github.com/lief-project/LIEF")
(synopsis "Library to instrument executable formats")
(description