From patchwork Fri Apr 23 17:28:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 28835 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 2985D27BC7D; Fri, 23 Apr 2021 18:31:38 +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.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, T_DKIM_INVALID,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 E15E227BC7C for ; Fri, 23 Apr 2021 18:31:36 +0100 (BST) Received: from localhost ([::1]:33884 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lZzeS-0006t0-5u for patchwork@mira.cbaines.net; Fri, 23 Apr 2021 13:31:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45170) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZzd5-0006HW-Fp for guix-patches@gnu.org; Fri, 23 Apr 2021 13:30:11 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55459) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lZzcy-0002ZU-8p for guix-patches@gnu.org; Fri, 23 Apr 2021 13:30:11 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lZzcy-0003BF-5T for guix-patches@gnu.org; Fri, 23 Apr 2021 13:30:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47976] [PATCH 10/10] gnu: Add orange. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 23 Apr 2021 17:30:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47976 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47976@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 47976-submit@debbugs.gnu.org id=B47976.161919896412106 (code B ref 47976); Fri, 23 Apr 2021 17:30:04 +0000 Received: (at 47976) by debbugs.gnu.org; 23 Apr 2021 17:29:24 +0000 Received: from localhost ([127.0.0.1]:38767 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lZzcK-00039B-Cf for submit@debbugs.gnu.org; Fri, 23 Apr 2021 13:29:24 -0400 Received: from mout02.posteo.de ([185.67.36.66]:37583) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lZzcI-00038d-UV for 47976@debbugs.gnu.org; Fri, 23 Apr 2021 13:29:23 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 4D4D12400FD for <47976@debbugs.gnu.org>; Fri, 23 Apr 2021 19:29:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1619198957; bh=3nP+PHRQkxu25KUdVUOVaAMvOBcXBg/QJzFqxVNCMt4=; h=From:To:Cc:Subject:Date:From; b=i8lfz+oqIEPpONPK4WimtgoZw8HP6q1smMbZ/P2N97othqGddeK26i/fxWiVycNCZ Exp4zK1AcwZ4Kvr3Ez7C1qSLTi+GP8ZNy/CvZOdRS+T+D9ey+V5zxfEmNieIyCxeBd Y8I9SNdXHDN+Uf+ZeYSpOG6o77bvxOPheQttm/JzjAedzFfrnRYQ6DOeCxSimGJv1o s5GeOyspTK8s209QkhmmHjQz4b4UlvYF13ONroRN4prh0Qnl4awwxrKKWr9e6EXZIM pOTZJtSXqPPQ4jpOh+oCENETN3RQMZQUa+20oFF+5XNqmp5WP1QIG7UbE+VTofx4ic rpZlauaYOSf6Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FRh9R6fZtz6tmH; Fri, 23 Apr 2021 19:29:15 +0200 (CEST) From: Vinicius Monego Date: Fri, 23 Apr 2021 17:28:16 +0000 Message-Id: <20210423172816.73579-10-monego@posteo.net> In-Reply-To: <20210423172816.73579-1-monego@posteo.net> References: <20210423172816.73579-1-monego@posteo.net> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/orange.scm (orange): New variable. --- gnu/packages/orange.scm | 88 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) diff --git a/gnu/packages/orange.scm b/gnu/packages/orange.scm index 5713516e58..f70bd83c47 100644 --- a/gnu/packages/orange.scm +++ b/gnu/packages/orange.scm @@ -22,6 +22,11 @@ #:use-module (guix download) #:use-module (guix build-system python) #:use-module (gnu packages) + #:use-module (gnu packages freedesktop) + #:use-module (gnu packages graph) + #:use-module (gnu packages machine-learning) + #:use-module (gnu packages python-crypto) + #:use-module (gnu packages python-science) #:use-module (gnu packages python-web) #:use-module (gnu packages python-xyz) #:use-module (gnu packages qt)) @@ -101,6 +106,89 @@ data-mining application.") GUI based workflow. It is primarily used in the Orange framework.") (license license:gpl3+))) +(define-public orange + (package + (name "orange") + (version "3.28.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "Orange3" version)) + (sha256 + (base32 "1ac4xjjkx06z10hl7k0zh1z3qhkl5vng15l9jkpkmck9spinbzil")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'preparations + (lambda _ + ;; Delete test that opens an outgoing connection. + (delete-file "Orange/tests/test_url_reader.py") + ;; This is a binary file and it breaks runpath validation. + (delete-file "Orange/tests/datasets/binary-blob.tab") + ;; Skip the test which uses that binary file. + (substitute* "Orange/tests/test_txt_reader.py" + (("test_read_nonutf8_encoding") "_test_read_nonutf8_encoding")) + ;; Relax some dependency versions. + (substitute* "requirements-gui.txt" (("PyQtWebEngine>=5.12") "")) + (substitute* "requirements-core.txt" + (("httpx>=0.14.0,<0.17") "httpx")) + #t)) + (add-before 'check 'set-HOME + ;; Tests need a writable home. + (lambda _ (setenv "HOME" "/tmp") #t)) + (add-after 'install 'wrap-executable + ;; Ensure that icons are found at runtime. + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (wrap-program (string-append out "/bin/orange-canvas") + `("QT_PLUGIN_PATH" prefix + ,(list (string-append (assoc-ref inputs "qtsvg") + "/lib/qt5/plugins/"))))) + #t))))) + (native-inputs + `(("python-cython" ,python-cython))) + (inputs + `(("python-anyqt" ,python-anyqt) + ("python-baycomp" ,python-baycomp) + ("python-bottleneck" ,python-bottleneck) + ("python-chardet" ,python-chardet) + ("python-httpx" ,python-httpx) + ("python-joblib" ,python-joblib) + ("python-keyring" ,python-keyring) + ("python-keyrings.alt" ,python-keyrings.alt) + ("python-louvain" ,python-python-louvain) + ("python-matplotlib" ,python-matplotlib) + ("python-networkx" ,python-networkx) + ("python-numpy" ,python-numpy) + ("python-openpyxl" ,python-openpyxl) + ("python-opentsne" ,python-opentsne) + ("python-orange-canvas-core" + ,python-orange-canvas-core) + ("python-orange-widget-base" + ,python-orange-widget-base) + ("python-pandas" ,python-pandas) + ("python-pyqt" ,python-pyqt) + ("python-pyqtgraph" ,python-pyqtgraph) + ("python-pyqtwebengine" ,python-pyqtwebengine) + ("python-pyyaml" ,python-pyyaml) + ("python-requests" ,python-requests) + ("python-scikit-learn" ,python-scikit-learn) + ("python-scipy" ,python-scipy) + ("python-serverfiles" ,python-serverfiles) + ("python-xlrd" ,python-xlrd) + ("python-xlsxwriter" ,python-xlsxwriter) + ("qtbase" ,qtbase) + ("qtsvg" ,qtsvg) + ("xdg-utils" ,xdg-utils))) + (home-page "https://orangedatamining.com/") + (synopsis "Component-based data mining framework") + (description + "Orange is a graphical toolkit for machine learning, data analysis and +visualization based on the Qt framework. It is easy to use and enables rapid +experimenting with its tools.") + (license license:gpl3+))) + (define-public python-serverfiles (package (name "python-serverfiles")