From patchwork Tue Apr 20 05:22:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 28690 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 0E04927BC6C; Tue, 20 Apr 2021 06:25:19 +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 1397E27BC77 for ; Tue, 20 Apr 2021 06:25:18 +0100 (BST) Received: from localhost ([::1]:38448 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYisv-0002Dd-7a for patchwork@mira.cbaines.net; Tue, 20 Apr 2021 01:25:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40422) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYisg-0002D7-Hu for guix-patches@gnu.org; Tue, 20 Apr 2021 01:25:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41118) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lYisg-0003YG-AT for guix-patches@gnu.org; Tue, 20 Apr 2021 01:25:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lYisg-0007dz-7M for guix-patches@gnu.org; Tue, 20 Apr 2021 01:25:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47906] [PATCH 01/22] gnu: Add python-spyder-kernels. References: <20210420051907.470294-1-monego@posteo.net> In-Reply-To: <20210420051907.470294-1-monego@posteo.net> Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 20 Apr 2021 05:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47906 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47906@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 47906-submit@debbugs.gnu.org id=B47906.161889624329175 (code B ref 47906); Tue, 20 Apr 2021 05:25:02 +0000 Received: (at 47906) by debbugs.gnu.org; 20 Apr 2021 05:24:03 +0000 Received: from localhost ([127.0.0.1]:52631 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lYirc-0007a3-Nq for submit@debbugs.gnu.org; Tue, 20 Apr 2021 01:24:02 -0400 Received: from mout02.posteo.de ([185.67.36.66]:43217) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lYira-0007Zn-7G for 47906@debbugs.gnu.org; Tue, 20 Apr 2021 01:23:55 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id CDF362400E5 for <47906@debbugs.gnu.org>; Tue, 20 Apr 2021 07:23:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1618896227; bh=Z8kfOPbNpXkCVAXkk0L36Deuz2PCPTh5Tm3muhOhuxs=; h=From:To:Cc:Subject:Date:From; b=OHv67Y2VUnOiO8MRVnyJoxMDkeUxN23Wpl6/1wbUIFdR3IQRrg9gMD5droL7QA8i5 1Aqtp/Kp3BqtuAtF61AVVmp2eoXypFKhHGPlokFtSXulb2OovVSQEeuo5XJ6HEHrGp EJ0NhblH1wBKyH9KDwCF3bB0+L9kXthQP3+yBWn/90EDMTlX7PL3FLC3gJ7hTmhUtx hWvst8wYPPh7/OH8ztVL7rN1Jnu0A7jCy8g4yOkmXiR765cw5UrxZbhM+nJtRNF0iE UsHwg+oaw7+UKcCUfsjZQJ/d/9eZ4KLcY8lEv+GsxrNobZn8nF/SJqMlvRQgyCFtMc TG71aEPYJng6g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FPXCk26Ljz6tmJ; Tue, 20 Apr 2021 07:23:45 +0200 (CEST) From: Vinicius Monego Date: Tue, 20 Apr 2021 05:22:25 +0000 Message-Id: <20210420052246.470690-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/spyder.scm: New file. * gnu/local.mk (GNU_SYSTEM_MODULES): Register new file. --- gnu/local.mk | 3 +- gnu/packages/spyder.scm | 94 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 96 insertions(+), 1 deletion(-) create mode 100644 gnu/packages/spyder.scm diff --git a/gnu/local.mk b/gnu/local.mk index 50b11a8ca2..94f468e743 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -38,7 +38,7 @@ # Copyright © 2020 Tanguy Le Carrour # Copyright © 2020 Martin Becze # Copyright © 2020 Malte Frank Gerdes -# Copyright © 2020 Vinicius Monego +# Copyright © 2020, 2021 Vinicius Monego # Copyright © 2021 Björn Höfling # Copyright © 2021 Philip McGrath # @@ -518,6 +518,7 @@ GNU_SYSTEM_MODULES = \ %D%/packages/speech.scm \ %D%/packages/sphinx.scm \ %D%/packages/spice.scm \ + %D%/packages/spyder.scm \ %D%/packages/sqlite.scm \ %D%/packages/squirrel.scm \ %D%/packages/ssh.scm \ diff --git a/gnu/packages/spyder.scm b/gnu/packages/spyder.scm new file mode 100644 index 0000000000..9983066803 --- /dev/null +++ b/gnu/packages/spyder.scm @@ -0,0 +1,90 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2021 Vinicius Monego +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages spyder) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix build-system python) + #:use-module (guix git-download) + #:use-module (guix packages) + #:use-module (gnu packages) + #:use-module (gnu packages check) + #:use-module (gnu packages python) + #:use-module (gnu packages python-science) + #:use-module (gnu packages python-xyz)) + +(define-public python-spyder-kernels + (package + (name "python-spyder-kernels") + (version "2.0.1") + (source + (origin + ;; There are no tests in the PyPI tarball. + (method git-fetch) + (uri (git-reference + (url "https://github.com/spyder-ide/spyder-kernels/") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0lxa2s577dd3v8gslk7nzk5ck42gbnqa52dp9cw852n8rv988g4c")))) + (build-system python-build-system) + (arguments + `(#:test-target "pytest" + #:phases + (modify-phases %standard-phases + ;; Tests require write permission. + (add-before 'check 'change-home + (lambda _ + (setenv "HOME" "/tmp") + #t)) + (replace 'check + (lambda _ + ;; Disable failing tests. + (invoke "python" "-m" "pytest" "-k" + (string-append "not test_cwd_in_sys_path" + " and not test_dask_multiprocessing" + " and not test_runfile" + " and not test_umr_reload_modules"))))))) + (propagated-inputs + `(("python-cloudpickle" ,python-cloudpickle) + ("python-decorator" ,python-decorator) + ("python-ipykernel" ,python-ipykernel) + ("python-ipython" ,python-ipython) + ("python-jupyter-client" ,python-jupyter-client) + ("python-pyzmq" ,python-pyzmq) + ("python-wurlitzer" ,python-wurlitzer))) + (native-inputs + `(("python-codecov" ,python-codecov) + ("python-cython" ,python-cython) + ("python-dask" ,python-dask) + ("python-flaky" ,python-flaky) + ("python-matplotlib" ,python-matplotlib) + ("python-mock" ,python-mock) + ("python-numpy" ,python-numpy) + ("python-pandas" ,python-pandas) + ("python-pillow" ,python-pillow) + ("python-pytest" ,python-pytest) + ("python-pytest-cov" ,python-pytest-cov) + ("python-pytest-runner" ,python-pytest-runner) + ("python-scipy" ,python-scipy) + ("python-xarray" ,python-xarray))) + (home-page "https://github.com/spyder-ide/spyder-kernels") + (synopsis "Jupyter kernels for Spyder's console") + (description + "This package provides Jupyter kernels for use with the consoles of +Spyder, the Scientific Python Development Environment.") + (license license:expat)))