aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHilton Chain <hako@ultrarare.space>2022-08-16 21:30:32 +0800
committerMathieu Othacehe <othacehe@gnu.org>2022-08-17 09:23:28 +0200
commite4aca1cc3f8f9abf20043e0fc12f495d04c47db8 (patch)
tree520971951e58eeee16067f0df2e1df8615db172c
parentb74386efeaacaed95091b3e3390cc7580161cb28 (diff)
downloadguix-e4aca1cc3f8f9abf20043e0fc12f495d04c47db8.tar
guix-e4aca1cc3f8f9abf20043e0fc12f495d04c47db8.tar.gz
gnu: Add python-lief.
From c865b31b702d0e5f86faaadcb306cea269ae1109 Mon Sep 17 00:00:00 2001 From: Hilton Chain <hako@ultrarare.space> Date: Tue, 16 Aug 2022 21:26:33 +0800 Subject: [PATCH v3] gnu: Add python-lief. * gnu/packages/python-xyz.scm (python-lief): New variable. Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
-rw-r--r--gnu/packages/python-xyz.scm32
1 files changed, 32 insertions, 0 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 3259f46881..a08a0b7304 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -30644,3 +30644,35 @@ generator for Python.")
"This package provides access to Misskey's API. Misskey is a SNS
platform using the ActivityPub protocol.")
(license license:expat)))
+
+(define-public python-lief
+ (package
+ (name "python-lief")
+ (version "0.12.1")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/lief-project/LIEF")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1xzbh3bxy4rw1yamnx68da1v5s56ay4g081cyamv67256g0qy2i1"))))
+ (build-system python-build-system)
+ (native-inputs (list cmake))
+ (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)))))))))
+ (home-page "https://github.com/lief-project/LIEF")
+ (synopsis "Library to instrument executable formats")
+ (description
+ "@code{python-lief} is a cross platform library which can parse, modify
+and abstract ELF, PE and MachO formats.")
+ (license license:asl2.0)))