From patchwork Tue Aug 16 06:36:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hilton Chain X-Patchwork-Id: 41704 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 C338227BBEB; Tue, 16 Aug 2022 07:47:29 +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 4E42627BBEA for ; Tue, 16 Aug 2022 07:47:29 +0100 (BST) Received: from localhost ([::1]:46948 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNqMJ-0005Zc-Lt for patchwork@mira.cbaines.net; Tue, 16 Aug 2022 02:47:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33500) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNqDC-0006Fz-Re for guix-patches@gnu.org; Tue, 16 Aug 2022 02:38:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54880) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oNqDC-00052a-It for guix-patches@gnu.org; Tue, 16 Aug 2022 02:38:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oNqDC-0004oh-9X for guix-patches@gnu.org; Tue, 16 Aug 2022 02:38:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57058] [PATCH v2] gnu: Add python-lief. Resent-From: Hilton Chain Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 16 Aug 2022 06:38:02 +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.166063186418491 (code B ref 57058); Tue, 16 Aug 2022 06:38:02 +0000 Received: (at 57058) by debbugs.gnu.org; 16 Aug 2022 06:37:44 +0000 Received: from localhost ([127.0.0.1]:44629 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNqCu-0004oB-24 for submit@debbugs.gnu.org; Tue, 16 Aug 2022 02:37:44 -0400 Received: from mail.boiledscript.com ([144.168.59.46]:58154) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNqCq-0004nt-8B for 57058@debbugs.gnu.org; Tue, 16 Aug 2022 02:37:42 -0400 Date: Tue, 16 Aug 2022 14:36:29 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1660631853; 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: in-reply-to:in-reply-to:references:references; bh=woTf93skvhmcb/700hFSmcz9V6nqkZYhcmOhor34510=; b=QXebdhOw80iTRRHYQrv4rS1uwH+BDEH9lH+PJP3uxW4v1o5N9lFyFAc7yX+GDK6cIZYlaG xWGFW4b50oCloZ0F64xIkGZaorlKgLUVblI3CL0J3GPPTT8VZz9Py9xxt5mlIjTvwD4N+f du1EPN1YkV8eVRZFJf67Y12ymBrucWhObiFx6nSm/mN8r+abt/uSrTAwShuemq60FWl01d pLv1cSDNZL1JL4A+iTuASUb446zlaYsIdBRxvzPKR0/OTKeHV1yB3Jli2QXKpuBwmvEjpo 34prCFhJZUfXIJaswTl+VpFip3kY8VWpy4V02RiNGaA34ODNxNmf5PlSZ8Ohtw== Message-ID: In-Reply-To: <87bksq23md.fsf@gnu.org> References: <87bksq23md.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 b9ce692513271f33baf8e45cd10d0a350047986c Mon Sep 17 00:00:00 2001 From: Hilton Chain Date: Tue, 16 Aug 2022 14:31:05 +0800 Subject: [PATCH v2] gnu: Add python-lief. * gnu/packages/python-xyz.scm (python-lief): New variable. --- v1 -> v2: Enable parallel compilation. Sorry for the latency! >_< gnu/packages/python-xyz.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) base-commit: ace7b5babe118adb9caf116eb8273f7db6e7f152 diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 3259f46881..ecc1eab67c 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -30644,3 +30644,33 @@ (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 #: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)))