From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id wIzRCUmMUWMzLQEAbAwnHQ (envelope-from ) for ; Thu, 20 Oct 2022 19:58:33 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id AE8fCkmMUWMCgwAAauVa8A (envelope-from ) for ; Thu, 20 Oct 2022 19:58:33 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id CFCFC3AC81 for ; Thu, 20 Oct 2022 19:58:32 +0200 (CEST) Received: from localhost ([::1]:59024 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olZJi-0001uc-3e for larch@yhetil.org; Thu, 20 Oct 2022 13:26:50 -0400 Received: from [::1] (helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olYrh-0000ff-Lp for larch@yhetil.org; Thu, 20 Oct 2022 12:57:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60160) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olYJ0-0001KN-BY for guix-patches@gnu.org; Thu, 20 Oct 2022 12:22:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36928) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1olYJ0-00059s-0M for guix-patches@gnu.org; Thu, 20 Oct 2022 12:22:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1olYIz-00059L-Qj for guix-patches@gnu.org; Thu, 20 Oct 2022 12:22:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58662] [PATCH 2/2] gnu: Add shrinkwrap. Resent-From: Hilton Chain Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 20 Oct 2022 16:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58662 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58662@debbugs.gnu.org Received: via spool by 58662-submit@debbugs.gnu.org id=B58662.166628290519772 (code B ref 58662); Thu, 20 Oct 2022 16:22:01 +0000 Received: (at 58662) by debbugs.gnu.org; 20 Oct 2022 16:21:45 +0000 Received: from localhost ([127.0.0.1]:36006 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olYIj-00058p-7X for submit@debbugs.gnu.org; Thu, 20 Oct 2022 12:21:45 -0400 Received: from mail.boiledscript.com ([144.168.59.46]:52284) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olYIh-00058c-5R for 58662@debbugs.gnu.org; Thu, 20 Oct 2022 12:21:43 -0400 Date: Fri, 21 Oct 2022 00:20:52 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1666282897; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8xzZnvvvgj9DO8vfZxCyBzve0qeLMP8G+f2hQ48PdAo=; b=dh0/gOI5bUZD0ywvBhDj1UvkCYqDAwVTLVd28RP+PeJUFk8uDQkBR1goMF1v0aeXnOHh3r lQEZ0OAFd0QJqLwSuRONglqf67kugfUHJG5FQvE0MqR24+dD+kccOYPEOjfvJ+911wkW/o 2MypTPQVCOh73mavDrAgUfu4SugzIKij6qufbn+k3dIctbK41rZJPface8lGR8VATywrwZ t+Pb8v7DPZ16LEJuLKYWfgSUZ94e7aUyf3GC+SJU8+51IeM5Or0rxfkCzlMGcqfriqjGWO CdMMgV+j7no/Zt74EmrkJR6Q8+ArNJ/qa/NooCggeBASJ8IFnOGxpgpS4xs3SA== Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: Hilton Chain X-ACL-Warn: , Hilton Chain via Guix-patches From: Hilton Chain via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666288712; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=8xzZnvvvgj9DO8vfZxCyBzve0qeLMP8G+f2hQ48PdAo=; b=DeouMOPnITrrcwWbEz4QA//c94xkzHdEJEgsxA83UOS3mBGpRJqY3MdqvHy27ayXSDyHzJ n7xEnSHqhPxDQ2xKhn5JeN/qZVe9ckrmVJt3mEWBRFq0txTfhVpzpfZdoApLIaLVFvYDqG +alUWnqyIDvhpDjKf4MkJNUVZIOpuX8wXtP9mh3eNXr/wkwKd2t38P1ZF/1HxUxn2oMroq AUVGqOidGqpvf37wGSPBqQx/utX4tAqKM2ZBvFmUNEEqMjtrZELkfYaIusWsqWGORsMxwB JRYtd11TgIV8U+Oz7W88TxrfLueIt8gbdg9dfedgDMyV+X1Q24HM/X/ZCYmEbg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666288712; a=rsa-sha256; cv=none; b=oCFuZZawFxzNa/N3e1Gz0RMCx+M+TPtFMnlRjw4vRKVf33QnYLOOq5//D5XFo2kbCQTRmh /DX+FhOzoEubE6K1CoTyhx2tkfROLIfg5/z/GiMAXaZ+D2shbV0cd9uBasEhc/gobNmxrJ nfjOPyMRWeZ1RqSGZIqtAdfrPXQ+4agrTkyWD8+GsihvYs1QekBv58x4QH1fqHZIeN0Evq ZbczxhjbZe3TQbRH6OrFMMRTTsWWIy4omzzzBYmB7IjOPY4uVML23NNEynepAUvkC9J24K d11nVg/ZeY+G2jStNjLnExmXylsYfsmJ9ybjljNH89eymMGLWagXaU4HfpUTXg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b="dh0/gOI5"; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.43 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b="dh0/gOI5"; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: CFCFC3AC81 X-Spam-Score: -3.43 X-Migadu-Scanner: scn1.migadu.com X-TUID: 5cIPtof6K74e * gnu/packages/python-xyz.scm (shrinkwrap): New variable. --- gnu/packages/python-xyz.scm | 48 +++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 4223a76755..706de291c9 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -31142,6 +31142,54 @@ (define-public python-lief and abstract ELF, PE and MachO formats.") (license license:asl2.0))) +(define-public shrinkwrap + (package + (name "shrinkwrap") + (version "0.1.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/fzakaria/shrinkwrap") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (modules '((guix build utils))) + (snippet '(substitute* "pyproject.toml" + (("lief = \"0\\.12\\.0\"") "lief = \"*\""))) + (sha256 + (base32 + "1f3qrygj16y767q2c7pn9j6m95ggcmj9s5cx9v92ygygly4mr3jp")))) + (build-system python-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest" "-v" "tests")))) + ;; XXX: PEP 517 manual build copied from python-isort. + (replace 'build + (lambda _ + (invoke "python" "-m" "build" "--wheel" "--no-isolation" "."))) + (replace 'install + (lambda _ + (let ((whl (car (find-files "dist" "\\.whl$")))) + (invoke "pip" "--no-cache-dir" "--no-input" + "install" "--no-deps" "--prefix" #$output whl))))))) + (native-inputs + (list python-click + python-poetry-core + python-pypa-build + python-pytest)) + (inputs (list python-lief python-sh)) + (home-page "https://github.com/fzakaria/shrinkwrap") + (synopsis "Emboss needed dependencies on the top level executable") + (description + "@code{shrinkwrap} is a tool which will discover all transitive dynamic +shared objects, and lift them up to the executable referenced by absolute +path.") + (license license:expat))) + (define-public python-pymonad (package (name "python-pymonad") -- 2.38.0