gnu: python-lief: Update to 0.16.6.

* gnu/packages/python-xyz.scm (python-lief): Update to 0.16.6.
[build-system]: Switch to pyproject-build-system.
[native-inputs]: Add ninja, python-scikit-build-core, python-pydantic-2.
Replace cmake with cmake-minimal.
[arguments]<#:phases>: Use ‘build’ phase from the build system.
Change directory to "api/python" before build.

Change-Id: I8489ed2a3e73ec3ab202d25beae53d320b8808ed
Signed-off-by: Hilton Chain <hako@ultrarare.space>
This commit is contained in:
Hennadii Stepanov 2025-05-30 21:41:08 +01:00 committed by Hilton Chain
parent a755edec43
commit b99a2f21d1
No known key found for this signature in database
GPG key ID: ACC66D09CA528292

View file

@ -39293,7 +39293,7 @@ platform using the ActivityPub protocol.")
(define-public python-lief (define-public python-lief
(package (package
(name "python-lief") (name "python-lief")
(version "0.12.3") (version "0.16.6")
(source (origin (source (origin
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference
@ -39302,19 +39302,19 @@ platform using the ActivityPub protocol.")
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"11i6hqmcjh56y554kqhl61698n9v66j2qk1c1g63mv2w07h2z661")))) "1pq9nagrnkl1x943bqnpiyxmkd9vk99znfxiwqp6vf012b50bz2a"))))
(build-system python-build-system) (build-system pyproject-build-system)
(native-inputs (list cmake)) (native-inputs (list cmake-minimal
ninja
python-scikit-build-core
python-pydantic-2))
(arguments (arguments
(list (list
#:tests? #f ;needs network #:tests? #f ;needs network
#:phases #~(modify-phases %standard-phases #:phases #~(modify-phases %standard-phases
(replace 'build (add-before 'build 'change-directory
(lambda _ (lambda _
(invoke (chdir "api/python"))))))
"python" "setup.py" "--sdk" "build"
(string-append
"-j" (number->string (parallel-job-count)))))))))
(home-page "https://github.com/lief-project/LIEF") (home-page "https://github.com/lief-project/LIEF")
(synopsis "Library to instrument executable formats") (synopsis "Library to instrument executable formats")
(description (description