From patchwork Sun Apr 25 03:26:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 28869 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 7287D27BC7D; Sun, 25 Apr 2021 04:28:20 +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 F299927BC7C for ; Sun, 25 Apr 2021 04:28:19 +0100 (BST) Received: from localhost ([::1]:32954 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1laVRT-00078g-85 for patchwork@mira.cbaines.net; Sat, 24 Apr 2021 23:28:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34496) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1laVRE-0006l0-JI for guix-patches@gnu.org; Sat, 24 Apr 2021 23:28:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58513) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1laVRE-0002vA-BV for guix-patches@gnu.org; Sat, 24 Apr 2021 23:28:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1laVRE-0002By-8P for guix-patches@gnu.org; Sat, 24 Apr 2021 23:28:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47976] [PATCH v2 10/10] gnu: Add orange. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 25 Apr 2021 03:28: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.16193212508345 (code B ref 47976); Sun, 25 Apr 2021 03:28:04 +0000 Received: (at 47976) by debbugs.gnu.org; 25 Apr 2021 03:27:30 +0000 Received: from localhost ([127.0.0.1]:41821 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1laVQg-0002AR-BD for submit@debbugs.gnu.org; Sat, 24 Apr 2021 23:27:30 -0400 Received: from mout01.posteo.de ([185.67.36.65]:60813) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1laVQG-00028D-Og for 47976@debbugs.gnu.org; Sat, 24 Apr 2021 23:27:05 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 08ABC240026 for <47976@debbugs.gnu.org>; Sun, 25 Apr 2021 05:26:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1619321218; bh=0vvKehZh334B6fPgkxAHrrvbDsDeuPaamlR8hV+KM18=; h=From:To:Cc:Subject:Date:From; b=Of4SG1SvMO9hNSfaxMNpJUS8w0yJ3t6GPCNBWkpPoUE+6U0Fg0+G5SBzQZyjfP0oO vdtDRbildpgn7scl/sMUNkNO7h36l6orUw3kfETXjX5kgQ7yOspx6CZt70K2k4wkCT 63XP903pabJoH6P/SeRKx53aSX7Yr2maCq+WM9P8/th+PRSkLme8fdv5gMoM51tsc0 poYaTA8q0fvup6DNaq20IX16DN7wmQvSQ8sSflx6GUablzIm+B8/6+mfUWdHcZ0dA7 9HHf9TE3oFGM/ce7MU4MkU1WmVkgKJ9UXXJgCnKS8yvOFWoi+mxvQBhsrtHh4WZDt7 QZHvEfMLvQ2IA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FSYNc5xGsz9rxB; Sun, 25 Apr 2021 05:26:56 +0200 (CEST) From: Vinicius Monego Date: Sun, 25 Apr 2021 03:26:08 +0000 Message-Id: <20210425032608.124210-10-monego@posteo.net> In-Reply-To: <20210425032608.124210-1-monego@posteo.net> References: <20210425032608.124210-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. --- Removed httpx version substitution, rewritten description. gnu/packages/orange.scm | 85 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) diff --git a/gnu/packages/orange.scm b/gnu/packages/orange.scm index 97be36e489..19014c748d 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)) @@ -100,6 +105,86 @@ 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 data 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") "")) + #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 component-based, graphical framework for machine learning, +data analysis, data mining and data visualization.") + (license license:gpl3+))) + (define-public python-serverfiles (package (name "python-serverfiles")