From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id D9EhLDzNgmBx6wAAgWs5BA (envelope-from ) for ; Fri, 23 Apr 2021 15:35:56 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id qGW8JjzNgmDRWwAA1q6Kng (envelope-from ) for ; Fri, 23 Apr 2021 13:35:56 +0000 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 1A4F1BE7B for ; Fri, 23 Apr 2021 15:35:56 +0200 (CEST) Received: from localhost ([::1]:50364 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lZvyN-0006FF-62 for larch@yhetil.org; Fri, 23 Apr 2021 09:35:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33736) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZp9a-0003Yp-UF for guix-patches@gnu.org; Fri, 23 Apr 2021 02:19:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52721) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lZp9a-000426-N0 for guix-patches@gnu.org; Fri, 23 Apr 2021 02:19:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lZp9a-0004p6-JV for guix-patches@gnu.org; Fri, 23 Apr 2021 02:19:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47966] [PATCH] gnu: Add python-graph-tool. Resent-From: Alexandre Hannud Abdo Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 23 Apr 2021 06:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47966 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47966@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161915868718465 (code B ref -1); Fri, 23 Apr 2021 06:19:02 +0000 Received: (at submit) by debbugs.gnu.org; 23 Apr 2021 06:18:07 +0000 Received: from localhost ([127.0.0.1]:36031 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lZp8c-0004nP-0V for submit@debbugs.gnu.org; Fri, 23 Apr 2021 02:18:06 -0400 Received: from lists.gnu.org ([209.51.188.17]:50926) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lZp8Y-0004n9-8Q for submit@debbugs.gnu.org; Fri, 23 Apr 2021 02:18:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33568) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZp8Y-0003WE-3z for guix-patches@gnu.org; Fri, 23 Apr 2021 02:17:58 -0400 Received: from mail-wr1-f43.google.com ([209.85.221.43]:36424) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lZp8W-0003NV-Gs for guix-patches@gnu.org; Fri, 23 Apr 2021 02:17:57 -0400 Received: by mail-wr1-f43.google.com with SMTP id m9so34392585wrx.3 for ; Thu, 22 Apr 2021 23:17:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:user-agent :mime-version:content-transfer-encoding; bh=HDNqtJDReF86hR84UqX8Q+OFC1VL6MfZbKsPTPnVgZ4=; b=m5yok2XrtO7n2BeRLGkOwXjX/u5+/WahHVRINQBpio/ORSLjW4DOFPCJVYckrGisW5 VB7tqSJmnFHbmJmRFW3HEGdhjMudCf/wdxtix7dJbVuRHG9lNg+E49qVEcWH4WXdNkrE KvT1RenuHW0NZq3hJGktR9PyOQrQjeiQg5UtzZL7/UTWZZhHIKrCddcOhhbWDLkoMD3o 4ZCWIknD4x5gN2kyK0BnFXtPmS/huiOFJtyqXoChcpMcKMTHAthb3JcVMY0Oe7P3dkvK pLxnzOWplFHplC3yY9j0wEs2qecmqlH8fAR3Ku7tNix7rOxGaqN5BhKQ3fSPIWbvTwtz QHkg== X-Gm-Message-State: AOAM531f6P312if3ZZ9IGYj/8PLNZ1DzuLtlij9HwKHpi2oqfCjvA/PV BKwUUQA2PTXydJyotQUPDfXfRr2iTQw= X-Google-Smtp-Source: ABdhPJwEEL49Cnz4EUSsHbol/FExAA6jMH8cdvj6br2FKh0KeLNGyeC02Oym7itn/wGtEX+7ReqVMQ== X-Received: by 2002:a5d:6182:: with SMTP id j2mr2457335wru.317.1619158674359; Thu, 22 Apr 2021 23:17:54 -0700 (PDT) Received: from pigeongris ([37.172.116.104]) by smtp.gmail.com with ESMTPSA id b12sm36425909wmj.1.2021.04.22.23.17.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Apr 2021 23:17:53 -0700 (PDT) Message-ID: From: Alexandre Hannud Abdo Date: Fri, 23 Apr 2021 08:17:52 +0200 Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=209.85.221.43; envelope-from=alehabdo@gmail.com; helo=mail-wr1-f43.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Fri, 23 Apr 2021 09:34:33 -0400 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1619184956; h=from:from:sender:sender: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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=HDNqtJDReF86hR84UqX8Q+OFC1VL6MfZbKsPTPnVgZ4=; b=Us5PwsY+9KmulVxwhVWGM07NHXCWxaMjXtfMBDIHONvlRdAvRY1bT27Uwne3f0XkKaKS0V rltMdWkm3mzfHH2DpHLZTcVwR8gDCnU79yeukL0kfuGcDJP67sFFaumaZL3OWWQzoktngB Sq4jMrs0pW5M8ArSRrEai8GROpWVA/SP4UesgYf2OqHyqGMQObPSqiTz6BzF0EE5nn1veT vcerr3ZEcGbpkRDZFatDoZIkMc3fct4z7yu19/Ld6PpN9U32sEH+GTjGtDZz2W2URVuWX5 N9j9hrbVzeueiCfh+J8boW8BktvjzTk5ENH5LMraqwoHyM86nFRk+kuDYomVfQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619184956; a=rsa-sha256; cv=none; b=jSSjFL5cBnQ1PkAAxVU9PZooAnvrBSigYsECgESXRoD8f0eUpgnrAaVkFAhqVxtahQDbm/ BplM+Di7zQivGmiqbPjLrXvN77UCn79Po+3r+4bCZMWuhJmH4pmOzLUk4oRGMMsiRZk/D2 Horcw+cfVuIR3JDHnBpdlmDXkjo25klztdBeiqn3+wFtlNIc6FjBPzrQvVFgaRkDaT2Hhj R0+pHMmu9Tm09XsCZJofIluFaPJrVw+yZQ9MVbnXsiEKQsNuareipe6WzNSeP85+d4tbHI P6oHTZ0UzAEXLoBbolzZSkH0xZgMpMcx9mCUa9MSvhj5+PrCjBlOC9L74U1Q6A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=member.fsf.org (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -0.84 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=member.fsf.org (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 1A4F1BE7B X-Spam-Score: -0.84 X-Migadu-Scanner: scn0.migadu.com X-TUID: 82LCqIMtC125 * gnu/packages/graph.scm (python-graph-tool): New variable. --- gnu/packages/graph.scm | 62 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/gnu/packages/graph.scm b/gnu/packages/graph.scm index d2e4c875a1..94125ebdba 100644 --- a/gnu/packages/graph.scm +++ b/gnu/packages/graph.scm @@ -6,6 +6,7 @@ ;;; Copyright © 2019 Andreas Enge ;;; Copyright © 2020 Alexander Krotov ;;; Copyright © 2020 Pierre Langlois +;;; Copyright © 2021 Alexandre Hannud Abdo ;;; ;;; This file is part of GNU Guix. ;;; @@ -37,13 +38,18 @@ #:use-module (gnu packages autotools) #:use-module (gnu packages bioconductor) #:use-module (gnu packages bioinformatics) + #:use-module (gnu packages boost) #:use-module (gnu packages check) #:use-module (gnu packages compression) #:use-module (gnu packages cran) + #:use-module (gnu packages datastructures) #:use-module (gnu packages gd) + #:use-module (gnu packages graphics) #:use-module (gnu packages graphviz) + #:use-module (gnu packages gtk) #:use-module (gnu packages maths) #:use-module (gnu packages multiprecision) + #:use-module (gnu packages ncurses) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages python-science) @@ -510,3 +516,59 @@ MSCs need not be complicated to create or use. Mscgen aims to provide a simple text language that is clear to create, edit and understand, which can also be transformed into common image formats for display or printing.") (license license:gpl2+))) + +(define-public python-graph-tool + (package + (name "python-graph-tool") + (version "2.37") + (source (origin + (method url-fetch) + (uri (string-append + "https://downloads.skewed.de/graph-tool/graph-tool-" + version + ".tar.bz2")) + (sha256 + (base32 + "0w2i4d4zyk051zkykcg0ksngspajznwmp523hbsx50xnxc6jliyz")))) + (build-system gnu-build-system) + ;; (arguments '(#:configure-flags '("--disable-openmp"))) + (arguments + `(#:configure-flags + (list (string-append "--with-boost=" + (assoc-ref %build-inputs "boost")) + (string-append "--with-python-module-path=" + (assoc-ref %outputs "out") + "/lib/python" + ((lambda (version) + (substring version 0 (string-rindex version #\.))) + ,(package-version + (car (assoc-ref + (package-propagated-inputs this-package) + "python")))) + "/site-packages/")))) + (native-inputs `(("pkg-config" ,pkg-config) + ("gcc-10" ,gcc-10) + ("ncurses" ,ncurses))) + (inputs `(("boost" ,boost) + ("expat" ,expat) + ("gmp" ,gmp) + ("cgal" ,cgal) + ("sparsehash" ,sparsehash) + ("gtk+" ,gtk+) + ("cairomm" ,cairomm))) + (propagated-inputs `(("python" ,python-wrapper) + ("python-scipy" ,python-scipy) + ("python-numpy" ,python-numpy) + ("python-pycairo" ,python-pycairo) + ("python-matplotlib" ,python-matplotlib))) + (synopsis "Efficient python module for analysis of graphs") + (description "Graph-tool is an efficient Python module for +manipulation and statistical analysis of graphs (a.k.a. networks). +Contrary to most other Python modules with similar functionality, the +core data structures and algorithms are implemented in C++, making +extensive use of template metaprogramming, based heavily on the Boost +Graph Library. This confers it a level of performance that is +comparable (both in memory usage and computation time) to that of a +pure C/C++ library.") + (home-page "https://graph-tool.skewed.de/") + (license license:lgpl3+)))