From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oJbHJArinmBDGAAAgWs5BA (envelope-from ) for ; Fri, 14 May 2021 22:48:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id GOlRIArinmBDBQAAbx9fmQ (envelope-from ) for ; Fri, 14 May 2021 20:48:10 +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 1369727C16 for ; Fri, 14 May 2021 22:48:10 +0200 (CEST) Received: from localhost ([::1]:46628 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhejB-0001th-2g for larch@yhetil.org; Fri, 14 May 2021 16:48:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43466) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhej4-0001tZ-Hv for guix-patches@gnu.org; Fri, 14 May 2021 16:48:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35606) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lhej4-0005nq-9p for guix-patches@gnu.org; Fri, 14 May 2021 16:48:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lhej4-00035k-8G for guix-patches@gnu.org; Fri, 14 May 2021 16:48:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47966] [PATCH] gnu: Add python-graph-tool. References: In-Reply-To: Resent-From: Alexandre Hannud Abdo Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 14 May 2021 20:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47966 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47966@debbugs.gnu.org Received: via spool by 47966-submit@debbugs.gnu.org id=B47966.162102526611860 (code B ref 47966); Fri, 14 May 2021 20:48:02 +0000 Received: (at 47966) by debbugs.gnu.org; 14 May 2021 20:47:46 +0000 Received: from localhost ([127.0.0.1]:47152 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lheik-00035A-0r for submit@debbugs.gnu.org; Fri, 14 May 2021 16:47:46 -0400 Received: from mail-wm1-f44.google.com ([209.85.128.44]:35656) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lheig-00034v-DV for 47966@debbugs.gnu.org; Fri, 14 May 2021 16:47:40 -0400 Received: by mail-wm1-f44.google.com with SMTP id j3-20020a05600c4843b02901484662c4ebso2023459wmo.0 for <47966@debbugs.gnu.org>; Fri, 14 May 2021 13:47:38 -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=ywSKniZBvx6p8suGLEfE3p64gyKLGzwY5nCvUMuzgyk=; b=eCu3QdLBcuE/LIh5zNRv9157fFCGhESuQbiYAGkyQ0sre1II18ckcVIlw3UiUTekNw AsnQVcBpqpz/TiNXvWZJ+ozSNTjxNZqnWPa3xYuh7V+lw9KpmlYRc6EHpNb34sFMDAjP HjtSXZ+iOmgy1ml2f72/d3gJDeNd/f4PLPctkmwEIurjxK7kpzcZXmyCcM6PS3ZldGq2 lozw5zbpYbzggT3vEA6SJEm7IxqsRjLo+GqGS+jixYpdgxXmGOwRyn9H3So4vj0Vm7hB L65wfCRjEyJgv/eUaGGDoPHm5vEvhd5HPWwBS1pQWa15NuAhX2YPYSW9m8M3EsOrcC+l pNuQ== X-Gm-Message-State: AOAM533Q9REUYigyip8keURwsDJQ9FWgj8e1Q/yO/p4I2E7tcoV5UNyc YV+KciCyIjSCwvDpO6ZkwO0N0wSWH8I= X-Google-Smtp-Source: ABdhPJw5lOZT5ZdHlFVaX330JLdZ9PlnFvZVS0dZUhcab1AV4u7pA9KG47Y+f0EMILFFm8ZEfru/1Q== X-Received: by 2002:a05:600c:35c9:: with SMTP id r9mr11074168wmq.56.1621025252344; Fri, 14 May 2021 13:47:32 -0700 (PDT) Received: from pigeongris ([37.173.145.108]) by smtp.gmail.com with ESMTPSA id g4sm5990180wmk.45.2021.05.14.13.47.31 for <47966@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 May 2021 13:47:31 -0700 (PDT) Message-ID: From: Alexandre Hannud Abdo Date: Fri, 14 May 2021 22:47:30 +0200 Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1621025290; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=ywSKniZBvx6p8suGLEfE3p64gyKLGzwY5nCvUMuzgyk=; b=L3mNhBxPkj8FRIz3A8qVdLTDzX8hFc+wXuSiO+rHWHp+3+xXwqwHEUCdTai/0kmss/mBWJ 0vzrGmzyniviyNnZWpjbPpPrc0e/0wb4PA0Cxw2vHPbn/DzwaAauTwH1TxCsr290I2sYSX ftXA+Qy5adSwO2kKh/ifXOLHkllVsP0DR/pb1NaPCIVMBzF5lrZ68QC2DseqnPqlyuUQQ+ DngZxxDgsU6TOW/Jdbv3OMvHunvrSeUYr1LBJNGG4c8BmUUOqsdJuvbWMtM47EwxmoA+LR ZXJsJaEwiN82agcyQ57BUavXCLa1ERTntbOir9XAM/tC2hJJ8rBVfl2wuxIkKw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621025290; a=rsa-sha256; cv=none; b=OgVw3ID9eIQxqnHo5n4wOYqKKQzc5ucvYwIU+GMvQWnmvhQRj/UCc08JwGDvcKvB6ldRpm H0UMudcFKYxfbt9PtYp8hjgoVHgUkuRxg5iIeX5sxYgAt8NI7LkeSHb3sG0/Rem842EDkj NDtBu0s2sTI0OIif6G80byIr4D0UykDek7gy7vvpXvfVnol3NmnEAl0LtzI7SoFgArOZMi WXtX5qxBZs3ipEuqbxSClHkNc414AeMzJDjxEL1vGX/wRGiE9cSYPRTVEF0j7yn9YSPdc1 REuPmP0FGXPTqEspw09xSMUmzP3Wr47A0t+WYIgZ//SZo8ftR7/mb6dcIb+lSg== 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: -2.35 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: 1369727C16 X-Spam-Score: -2.35 X-Migadu-Scanner: scn0.migadu.com X-TUID: LQe6qCAW/fAp * 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 95506c69a9..10b1b91e41 100644 --- a/gnu/packages/graph.scm +++ b/gnu/packages/graph.scm @@ -7,6 +7,7 @@ ;;; Copyright © 2020 Alexander Krotov ;;; Copyright © 2020 Pierre Langlois ;;; Copyright © 2021 Vinicius Monego +;;; Copyright © 2021 Alexandre Hannud Abdo ;;; ;;; This file is part of GNU Guix. ;;; @@ -38,13 +39,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) @@ -532,3 +538,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 + (list (string-append "--with-boost=" + (assoc-ref %build-inputs "boost")) + (string-append "--with-python-module-path=" + (assoc-ref %outputs "out") + "/lib/python" + ,(version-major+minor + (package-version + (car (assoc-ref + (package-inputs this-package) + "python")))) + "/site-packages/")))) + (native-inputs + `(("pkg-config" ,pkg-config) + ("gcc-10" ,gcc-10) + ("ncurses" ,ncurses))) + (inputs + `(("python" ,python-wrapper) + ("boost" ,boost) + ("expat" ,expat) + ("gmp" ,gmp) + ("cgal" ,cgal) + ("sparsehash" ,sparsehash) + ("gtk+" ,gtk+) + ("cairomm" ,cairomm))) + (propagated-inputs + `(("python-scipy" ,python-scipy) + ("python-numpy" ,python-numpy) + ("python-pycairo" ,python-pycairo) + ("python-matplotlib" ,python-matplotlib))) + (synopsis "Manipulate and analyze graphs with Python efficiently") + (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+)))