From patchwork Tue Aug 16 13:30:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hilton Chain X-Patchwork-Id: 41707 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 1526227BBEA; Tue, 16 Aug 2022 14:32:13 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FROM_SUSPICIOUS_NTLD,MAILING_LIST_MULTI,PDS_OTHER_BAD_TLD, SPF_HELO_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id CC17427BBE9 for ; Tue, 16 Aug 2022 14:32:12 +0100 (BST) Received: from localhost ([::1]:45244 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNwfz-0007dj-Uk for patchwork@mira.cbaines.net; Tue, 16 Aug 2022 09:32:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37758) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNwfq-0007bV-87 for guix-patches@gnu.org; Tue, 16 Aug 2022 09:32:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55610) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oNwfp-0003iw-VE for guix-patches@gnu.org; Tue, 16 Aug 2022 09:32:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oNwfp-0003Wd-RF for guix-patches@gnu.org; Tue, 16 Aug 2022 09:32:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57058] [PATCH v3] gnu: Add python-lief. In-Reply-To: Resent-From: Hilton Chain Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 16 Aug 2022 13:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57058 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57058@debbugs.gnu.org Cc: Mathieu Othacehe Received: via spool by 57058-submit@debbugs.gnu.org id=B57058.166065666813303 (code B ref 57058); Tue, 16 Aug 2022 13:32:01 +0000 Received: (at 57058) by debbugs.gnu.org; 16 Aug 2022 13:31:08 +0000 Received: from localhost ([127.0.0.1]:45359 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNwex-0003ST-Vz for submit@debbugs.gnu.org; Tue, 16 Aug 2022 09:31:08 -0400 Received: from mail.boiledscript.com ([144.168.59.46]:39198) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNweu-0003KU-Ek for 57058@debbugs.gnu.org; Tue, 16 Aug 2022 09:31:06 -0400 Date: Tue, 16 Aug 2022 21:30:32 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1660656657; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: references:references; bh=ZZKKudCrBwOkMYk5YGhQ8S+/YxGYGODC8QF+J0enKsE=; b=ln+QI1/1p5aNZPbVcIcwwlz8ocaACJIOzcsMkzTUB/lBKuqQWvndOMU+U6z5X7gURc6QUJ dZ4ZZn1b5jUeVenkZQSlFaZ+GoIyvVNU5X0ac/qlwQHr1Q/lrgGpQbdykP6B99gErnkclc SBu0SPujH3Vkviy1dIVS/WNcpaza4/rLrjP46gQfGdI24C6HkXwbsQXzoi7E2dzOfU6O0y vipH8XV1S2410nQSwT9GClAtspEPbpKV6KfTfPl7PVeZa3ljtWVYVpSnl+25cNbIXBBcEw 2614qIi+5i+xQ2ny3w4D3imKZYoc/VY0vo5fcbc/6FB7aT9fC/UYfNs11h2Mig== Message-ID: References: <87bksq23md.fsf@gnu.org> <875yiscz9p.fsf@gnu.org> MIME-Version: 1.0 Authentication-Results: mail.boiledscript.com; auth=pass smtp.mailfrom=hako@ultrarare.space X-Spamd-Bar: / X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: Hilton Chain X-ACL-Warn: , Hilton Chain via Guix-patches X-Patchwork-Original-From: Hilton Chain via Guix-patches via From: Hilton Chain X-getmail-retrieved-from-mailbox: Patches From c865b31b702d0e5f86faaadcb306cea269ae1109 Mon Sep 17 00:00:00 2001 From: Hilton Chain 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. --- v2 -> v3: Disable tests. gnu/packages/python-xyz.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) base-commit: ace7b5babe118adb9caf116eb8273f7db6e7f152 diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 3259f46881..fbb52a300f 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -30644,3 +30644,34 @@ (define-public python-misskey "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 + "LIEF is a cross platform library which can parse, modify and abstract ELF, +PE and MachO formats.") + (license license:asl2.0)))