From patchwork Fri Apr 23 06:17:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ale Abdo X-Patchwork-Id: 28819 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 06EDC27BC7D; Fri, 23 Apr 2021 14:35:56 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 39E0C27BC7C for ; Fri, 23 Apr 2021 14:35:55 +0100 (BST) Received: from localhost ([::1]:50364 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lZvyM-0006FF-6i for patchwork@mira.cbaines.net; Fri, 23 Apr 2021 09:35:54 -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 User-Agent: Evolution 3.34.2 MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * 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+)))