mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-pyelftools: Improve package style.
* gnu/packages/python-xyz.scm (python-pyelftools): Apply G-expressions and adjust fields order, fix indentation. [build-system]: Swap to pyproject. [native-inputs]: Add python-setuptools and python-wheel. Change-Id: Idabd26b7fabfd78597cce061d4f60441d83c0897
This commit is contained in:
parent
138ac803e3
commit
772b2bb850
1 changed files with 25 additions and 19 deletions
|
@ -24859,12 +24859,12 @@ OpenSSH Server for example.")
|
||||||
(package
|
(package
|
||||||
(name "python-pyelftools")
|
(name "python-pyelftools")
|
||||||
(version "0.30")
|
(version "0.30")
|
||||||
(home-page "https://github.com/eliben/pyelftools")
|
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
(uri (git-reference (url home-page)
|
(uri (git-reference
|
||||||
(commit (string-append "v" version))))
|
(url "https://github.com/eliben/pyelftools")
|
||||||
|
(commit (string-append "v" version))))
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "0gk47mq5cqv6qz35aydn67wma5m70gv5f9f6pg38zny6vsfavmq3"))
|
(base32 "0gk47mq5cqv6qz35aydn67wma5m70gv5f9f6pg38zny6vsfavmq3"))
|
||||||
|
@ -24878,23 +24878,29 @@ OpenSSH Server for example.")
|
||||||
;;
|
;;
|
||||||
(delete-file "test/external_tools/readelf")
|
(delete-file "test/external_tools/readelf")
|
||||||
(delete-file "test/external_tools/llvm-dwarfdump")))))
|
(delete-file "test/external_tools/llvm-dwarfdump")))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:phases (modify-phases %standard-phases
|
(list
|
||||||
(replace 'check
|
#:phases
|
||||||
(lambda* (#:key tests? #:allow-other-keys)
|
#~(modify-phases %standard-phases
|
||||||
(when tests?
|
(replace 'check
|
||||||
;; Run just basic unit and example tests, dwarfdump and
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
;; readelf tests are not selected as they they are fragile and
|
(when tests?
|
||||||
;; arch-specific.
|
;; Run just basic unit and example tests, dwarfdump and
|
||||||
(invoke "python" "test/run_all_unittests.py")
|
;; readelf tests are not selected as they are fragile and
|
||||||
(invoke "python" "test/run_examples_test.py")))))))
|
;; arch-specific.
|
||||||
(synopsis
|
(invoke "python" "test/run_all_unittests.py")
|
||||||
"Analyze binary and library file information")
|
(invoke "python" "test/run_examples_test.py")))))))
|
||||||
(description "This Python library provides interfaces for parsing and
|
(home-page "https://github.com/eliben/pyelftools")
|
||||||
analyzing two binary and library file formats ; the Executable and Linking
|
(native-inputs
|
||||||
Format (ELF), and debugging information in the Debugging With Attributed
|
(list python-setuptools
|
||||||
Record Format (DWARF).")
|
python-wheel))
|
||||||
|
(synopsis "Analyze binary and library file information")
|
||||||
|
(description
|
||||||
|
"This Python library provides interfaces for parsing and analyzing two
|
||||||
|
binary and library file formats ; the Executable and Linking Format (ELF), and
|
||||||
|
debugging information in the Debugging With Attributed Record
|
||||||
|
Format (DWARF).")
|
||||||
(license license:public-domain)))
|
(license license:public-domain)))
|
||||||
|
|
||||||
(define-public python-pefile
|
(define-public python-pefile
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue