GNU bug report logs - #59281
[PATCH] gnu: Add python-dm-tree.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: Nicolas Graves <ngraves@HIDDEN>; Keywords: patch; Done: Ludovic Courtès <ludo@HIDDEN>; Maintainer for guix-patches is guix-patches@HIDDEN.

Message received at 59281-done <at> debbugs.gnu.org:


Received: (at 59281-done) by debbugs.gnu.org; 28 Nov 2022 22:30:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Nov 28 17:30:09 2022
Received: from localhost ([127.0.0.1]:51310 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ozmdd-0005XJ-Mo
	for submit <at> debbugs.gnu.org; Mon, 28 Nov 2022 17:30:09 -0500
Received: from eggs.gnu.org ([209.51.188.92]:38024)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1ozmdb-0005Vr-Mq
 for 59281-done <at> debbugs.gnu.org; Mon, 28 Nov 2022 17:30:08 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1ozmdU-0006ML-UN; Mon, 28 Nov 2022 17:30:00 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To:
 From; bh=EpCjCBlVGIfiJmzzsoQUhiLXqKs/+MG+c7cugi6P2Do=; b=KRjLjcCxl+ME1eesH8kb
 EsIbjHf8sbjZBfyoLQtOr41ZHOwIESlrwoNNkICnJ3roQJJUEYrW52zNY0GPmfRlxFWRpCs1IyKUo
 EQbYNLNMyH8LAg/aFC7c615WpaLvbLdGPh120p5DYtOqQd438VcEXtycapRIZmgW7Y1Ex7a5uW28R
 Rn6VsFm/F3us/UK9x2JtBDqIQMvVXAzSAEy7WlIDTEXd5Uepv6hoNXcr7I2iHDac9FapJMHVqbOof
 kom5O49yX+EPf1YCeeNUBFX3IP2AqEBJsYR4WlwjOpUJue/tCwGzj3uG/d9FA21hQOWgTPZvqGjvH
 Fa6tahptqnTNyQ==;
Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1ozmdU-00089t-By; Mon, 28 Nov 2022 17:30:00 -0500
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Nicolas Graves <ngraves@HIDDEN>
Subject: Re: bug#59281: [PATCH] gnu: Add python-dm-tree.
References: <20221115083852.8994-1-ngraves@HIDDEN>
 <20221115200305.17761-1-ngraves@HIDDEN>
Date: Mon, 28 Nov 2022 23:29:57 +0100
In-Reply-To: <20221115200305.17761-1-ngraves@HIDDEN> (Nicolas Graves's
 message of "Tue, 15 Nov 2022 21:03:05 +0100")
Message-ID: <87zgca7lwa.fsf_-_@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 59281-done
Cc: 59281-done <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi,

Nicolas Graves <ngraves@HIDDEN> skribis:

> * gnu/packages/python-xyz.scm (python-dm-tree): New variable.

Applied with cosmetic changes, primarily to remove the hardcoded =E2=80=9C3=
.9=E2=80=9D
Python version number.

Thanks,
Ludo=E2=80=99.




Notification sent to Nicolas Graves <ngraves@HIDDEN>:
bug acknowledged by developer. Full text available.
Reply sent to Ludovic Courtès <ludo@HIDDEN>:
You have taken responsibility. Full text available.

Message received at 59281 <at> debbugs.gnu.org:


Received: (at 59281) by debbugs.gnu.org; 15 Nov 2022 20:03:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 15 15:03:15 2022
Received: from localhost ([127.0.0.1]:55330 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ov29L-0000c7-0j
	for submit <at> debbugs.gnu.org; Tue, 15 Nov 2022 15:03:15 -0500
Received: from 8.mo560.mail-out.ovh.net ([188.165.52.147]:49779)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ngraves@HIDDEN>) id 1ov29I-0000bx-1q
 for 59281 <at> debbugs.gnu.org; Tue, 15 Nov 2022 15:03:13 -0500
Received: from player793.ha.ovh.net (unknown [10.111.208.129])
 by mo560.mail-out.ovh.net (Postfix) with ESMTP id 40DEA23C93
 for <59281 <at> debbugs.gnu.org>; Tue, 15 Nov 2022 20:03:09 +0000 (UTC)
Received: from ngraves.fr (81-67-140-142.rev.numericable.fr [81.67.140.142])
 (Authenticated sender: ngraves@HIDDEN)
 by player793.ha.ovh.net (Postfix) with ESMTPSA id 80FD530BFCAE2;
 Tue, 15 Nov 2022 20:03:07 +0000 (UTC)
Authentication-Results: garm.ovh; auth=pass
 (GARM-100R003b93988ad-d5a2-4204-8c0f-00aa564267c3,
 2F6105918EBEC42D628EBADD442E48203073A816) smtp.auth=ngraves@HIDDEN
X-OVh-ClientIp: 81.67.140.142
From: Nicolas Graves <ngraves@HIDDEN>
To: 59281 <at> debbugs.gnu.org
Subject: [PATCH] gnu: Add python-dm-tree.
Date: Tue, 15 Nov 2022 21:03:05 +0100
Message-Id: <20221115200305.17761-1-ngraves@HIDDEN>
X-Mailer: git-send-email 2.38.1
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Ovh-Tracer-Id: 17328725469777814242
X-VR-SPAMSTATE: OK
X-VR-SPAMSCORE: 0
X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvgedrgeeggddufeefucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvfevufffkffogggtgfesthekredtredtjeenucfhrhhomheppfhitgholhgrshcuifhrrghvvghsuceonhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrqeenucggtffrrghtthgvrhhnpeelueehgfevfeevhffftdetgedugeevveehteeileeuueejhfegffetteffhffhvdenucffohhmrghinhepghhithhhuhgsrdgtohhmnecukfhppeduvdejrddtrddtrddupdekuddrieejrddugedtrddugedvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpeeonhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrqedpnhgspghrtghpthhtohepuddprhgtphhtthhopeehledvkeduseguvggssghughhsrdhgnhhurdhorhhgpdfovfetjfhoshhtpehmohehiedtpdhmohguvgepshhmthhpohhuth
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 59281
Cc: ngraves@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/python-xyz.scm (python-dm-tree): New variable.
---
 gnu/packages/python-xyz.scm | 68 +++++++++++++++++++++++++++++++++++++
 1 file changed, 68 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 1758450c2f..fafacc4d94 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -131,6 +131,7 @@
 ;;; Copyright © 2022 Mathieu Laparie <mlaparie@HIDDEN>
 ;;; Copyright © 2022 Garek Dyszel <garekdyszel@HIDDEN>
 ;;; Copyright © 2022 Baptiste Strazzulla <bstrazzull@HIDDEN>
+;;; Copyright © 2022 Nicolas Graves <ngraves@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -159,6 +160,7 @@ (define-module (gnu packages python-xyz)
   #:use-module (gnu packages check)
   #:use-module (gnu packages cmake)
   #:use-module (gnu packages compression)
+  #:use-module (gnu packages cpp)
   #:use-module (gnu packages crypto)
   #:use-module (gnu packages databases)
   #:use-module (gnu packages dbm)
@@ -4618,6 +4620,72 @@ (define-public autokey
 flexibility and power of the Python language.")
     (license license:gpl3+)))
 
+(define-public python-dm-tree
+  (package
+    (name "python-dm-tree")
+    (version "0.1.7")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "dm-tree" version))
+       (sha256
+        (base32 "0apxfxgmqh22qpk92zmmf3acqkavhwxz78lnwz026a5rlnncizih"))))
+    (build-system python-build-system)
+    (inputs (list pybind11 abseil-cpp python))
+    (propagated-inputs (list python-wheel
+                         python-absl-py
+                         python-attrs
+                         python-numpy
+                         python-wrapt))
+    (arguments
+     (list
+      #:tests? #f
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-before 'build 'build-shared-lib
+            (lambda _
+              (let* ((pybind11   #$(this-package-input "pybind11"))
+                     (python     #$(this-package-input "python"))
+                     (abseil-cpp #$(this-package-input "abseil-cpp")))
+                ;; Delete default cmake build.
+                (substitute* "setup.py"
+                  (("ext_modules.*") "")
+                  (("cmdclass.*") ""))
+                ;; Actual build phase.
+                (mkdir-p "build/temp/tree/")
+                (invoke
+                 "gcc" "-pthread" "-Wno-unused-result" "-Wsign-compare"
+                 "-DNDEBUG" "-g" "-fwrapv" "-O3" "-Wall"
+                 "-fno-semantic-interposition" "-fPIC"
+                 "-I" (string-append
+                       pybind11 "/lib/python3.9/site-packages/pybind11/include")
+                 "-I" (string-append python "/include/python3.9")
+                 "-I" (string-append abseil-cpp "/include")
+                 "-c" "tree/tree.cc"
+                 "-o" "build/temp/tree/tree.o"
+                 "-fvisibility=hidden" "-g0")
+                (mkdir-p "build/lib/tree")
+                (invoke
+                 "g++" "-pthread" "-shared"
+                 (string-append "-Wl," "-rpath=" python "/lib")
+                 "-fno-semantic-interposition"
+                 "build/temp/tree/tree.o"
+                 "-L" (string-append python "/lib")
+                 "-L" (string-append abseil-cpp "/lib")
+                 "-l" "absl_int128"
+                 "-l" "absl_raw_hash_set"
+                 "-l" "absl_raw_logging_internal"
+                 "-l" "absl_strings"
+                 "-l" "absl_throw_delegate"
+                 "-o" "build/lib/tree/_tree.so")))))))
+    (home-page "https://github.com/deepmind/tree")
+    (synopsis "Work with nested data structures in python.")
+    (description "Tree is a python library for working with nested
+data structures. In a way, @code{tree} generalizes the builtin map
+function which only supports flat sequences, and allows to apply a
+function to each leaf preserving the overall structure.")
+    (license license:asl2.0)))
+
 (define-public python-docutils
   (package
     (name "python-docutils")
-- 
2.38.1





Information forwarded to guix-patches@HIDDEN:
bug#59281; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 15 Nov 2022 08:39:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 15 03:39:16 2022
Received: from localhost ([127.0.0.1]:52844 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ourTQ-0000Vu-E9
	for submit <at> debbugs.gnu.org; Tue, 15 Nov 2022 03:39:16 -0500
Received: from lists.gnu.org ([209.51.188.17]:35476)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ngraves@HIDDEN>) id 1ourTP-0000Vm-0s
 for submit <at> debbugs.gnu.org; Tue, 15 Nov 2022 03:39:15 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ngraves@HIDDEN>)
 id 1ourTL-0006f3-5i
 for guix-patches@HIDDEN; Tue, 15 Nov 2022 03:39:13 -0500
Received: from 8.mo560.mail-out.ovh.net ([188.165.52.147])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ngraves@HIDDEN>)
 id 1ourTI-0002dA-8y
 for guix-patches@HIDDEN; Tue, 15 Nov 2022 03:39:10 -0500
Received: from player690.ha.ovh.net (unknown [10.108.4.98])
 by mo560.mail-out.ovh.net (Postfix) with ESMTP id CE56824714
 for <guix-patches@HIDDEN>; Tue, 15 Nov 2022 08:38:55 +0000 (UTC)
Received: from ngraves.fr (81-67-140-142.rev.numericable.fr [81.67.140.142])
 (Authenticated sender: ngraves@HIDDEN)
 by player690.ha.ovh.net (Postfix) with ESMTPSA id 3EE5E309C8776;
 Tue, 15 Nov 2022 08:38:54 +0000 (UTC)
Authentication-Results: garm.ovh; auth=pass
 (GARM-100R003b52989ae-383b-4b8e-ab23-c63843e79ebb,
 2F6105918EBEC42D628EBADD442E48203073A816) smtp.auth=ngraves@HIDDEN
X-OVh-ClientIp: 81.67.140.142
From: Nicolas Graves <ngraves@HIDDEN>
To: guix-patches@HIDDEN
Subject: [PATCH] gnu: Add python-dm-tree.
Date: Tue, 15 Nov 2022 09:38:52 +0100
Message-Id: <20221115083852.8994-1-ngraves@HIDDEN>
X-Mailer: git-send-email 2.38.1
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Ovh-Tracer-Id: 5773333249727128290
X-VR-SPAMSTATE: OK
X-VR-SPAMSCORE: 0
X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvgedrgeefgdduvddvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvfevufffkffogggtgfesthekredtredtjeenucfhrhhomheppfhitgholhgrshcuifhrrghvvghsuceonhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrqeenucggtffrrghtthgvrhhnpeelueehgfevfeevhffftdetgedugeevveehteeileeuueejhfegffetteffhffhvdenucffohhmrghinhepghhithhhuhgsrdgtohhmnecukfhppeduvdejrddtrddtrddupdekuddrieejrddugedtrddugedvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpeeonhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrqedpnhgspghrtghpthhtohepuddprhgtphhtthhopehguhhigidqphgrthgthhgvshesghhnuhdrohhrghdpoffvtefjohhsthepmhhoheeitddpmhhouggvpehsmhhtphhouhht
Received-SPF: pass client-ip=188.165.52.147; envelope-from=ngraves@HIDDEN;
 helo=8.mo560.mail-out.ovh.net
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001,
 RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
Cc: ngraves@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

* gnu/packages/python-xyz.scm (python-dm-tree): New variable.
---
 gnu/packages/python-xyz.scm | 65 +++++++++++++++++++++++++++++++++++++
 1 file changed, 65 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 7e10682e69..7e66a69273 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -131,6 +131,7 @@
 ;;; Copyright © 2022 Mathieu Laparie <mlaparie@HIDDEN>
 ;;; Copyright © 2022 Garek Dyszel <garekdyszel@HIDDEN>
 ;;; Copyright © 2022 Baptiste Strazzulla <bstrazzull@HIDDEN>
+;;; Copyright © 2022 Nicolas Graves <ngraves@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -159,6 +160,7 @@ (define-module (gnu packages python-xyz)
   #:use-module (gnu packages check)
   #:use-module (gnu packages cmake)
   #:use-module (gnu packages compression)
+  #:use-module (gnu packages cpp)
   #:use-module (gnu packages crypto)
   #:use-module (gnu packages databases)
   #:use-module (gnu packages dbm)
@@ -4631,6 +4633,69 @@ (define-public autokey
 flexibility and power of the Python language.")
     (license license:gpl3+)))
 
+(define-public python-dm-tree
+  (package
+    (name "python-dm-tree")
+    (version "0.1.7")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "dm-tree" version))
+       (sha256
+        (base32 "0apxfxgmqh22qpk92zmmf3acqkavhwxz78lnwz026a5rlnncizih"))))
+    (build-system python-build-system)
+    (native-inputs (list python-wheel
+                         python-absl-py
+                         python-attrs
+                         python-numpy
+                         python-wrapt))
+    (inputs (list pybind11 abseil-cpp))
+    (arguments
+     (list
+      #:tests? #f
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-before 'build 'build-shared-lib
+            (lambda _
+              ;; Delete default cmake build.
+              (substitute* "setup.py"
+                (("ext_modules.*") "")
+                (("cmdclass.*") ""))
+              ;; Actual build phase.
+              (mkdir-p "build/temp.linux-x86_64-3.9/tree/")
+              (invoke
+               "gcc" "-pthread" "-Wno-unused-result" "-Wsign-compare"
+               "-DNDEBUG" "-g" "-fwrapv" "-O3" "-Wall"
+               "-fno-semantic-interposition" "-fPIC"
+               "-I" #$(file-append
+                       pybind11 "/lib/python3.9/site-packages/pybind11/include")
+               "-I" #$(file-append python "/include/python3.9")
+               "-I" #$(file-append abseil-cpp "/include")
+               "-c" "tree/tree.cc"
+               "-o" "build/temp.linux-x86_64-3.9/tree/tree.o"
+               "-fvisibility=hidden" "-g0")
+              (mkdir-p "build/lib/tree")
+              (invoke
+               "g++" "-pthread" "-shared"
+               (string-append "-Wl," "-rpath=" #$python "/lib")
+               "-fno-semantic-interposition"
+               "build/temp.linux-x86_64-3.9/tree/tree.o"
+               "-L" #$(file-append python "/lib")
+               "-L" #$(file-append abseil-cpp "/lib")
+               "-l" "absl_int128"
+               "-l" "absl_raw_hash_set"
+               "-l" "absl_raw_logging_internal"
+               "-l" "absl_strings"
+               "-l" "absl_throw_delegate"
+               "-o" "build/lib/tree/_tree.so"))))))
+    (home-page "https://github.com/deepmind/tree")
+    (synopsis "Work with nested data structures in python.")
+    (description "Tree is a python library for working with nested
+data structures. In a way, @code{tree} generalizes the builtin map
+function which only supports flat sequences, and allows to apply a
+function to each leaf preserving the overall structure.")
+    (license license:asl2.0)))
+
 (define-public python-docutils
   (package
     (name "python-docutils")
-- 
2.38.1





Acknowledgement sent to Nicolas Graves <ngraves@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#59281; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 28 Nov 2022 22:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.