From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:43631) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jCJ0e-0004dW-E0 for guix-patches@gnu.org; Thu, 12 Mar 2020 04:16:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jCJ0d-0003Vl-72 for guix-patches@gnu.org; Thu, 12 Mar 2020 04:16:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49922) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jCJ0d-0003Vh-3s for guix-patches@gnu.org; Thu, 12 Mar 2020 04:16:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jCJ0c-0006Dv-WF for guix-patches@gnu.org; Thu, 12 Mar 2020 04:16:03 -0400 Subject: [bug#40036] [PATCH 2/2] gnu: Add python-ipython-cluster-helper. Resent-Message-ID: From: Efraim Flashner Date: Thu, 12 Mar 2020 10:14:39 +0200 Message-Id: <20200312081439.7478-2-efraim@flashner.co.il> In-Reply-To: <20200312081439.7478-1-efraim@flashner.co.il> References: <20200312081439.7478-1-efraim@flashner.co.il> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 40036@debbugs.gnu.org Cc: Efraim Flashner * gnu/packages/python-xyz.scm (python-ipython-cluster-helper): New variable. --- gnu/packages/python-xyz.scm | 48 +++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 0126d576ed..5f55b48eec 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -5433,6 +5433,54 @@ CLI scripts: `(("python2-futures" ,python2-futures) ,@(package-propagated-inputs ipyparallel)))))) +(define-public python-ipython-cluster-helper + (package + (name "python-ipython-cluster-helper") + (version "0.6.4") + (source + (origin + (method url-fetch) + (uri (pypi-uri "ipython-cluster-helper" version)) + (sha256 + (base32 + "1l6mlwxlkxpbvawfwk6qffich7ahg9hq2bxfissgz6144p3k4arj")) + (modules '((guix build utils))) + (snippet + '(begin (substitute* "requirements.txt" + (("ipython.*") "ipython\n")) + #t)))) + (build-system python-build-system) + (arguments + `(#:tests? #f ; Test suite can't find IPython. + #:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key inputs outputs tests? #:allow-other-keys) + (if tests? + (begin + (setenv "HOME" (getcwd)) + (add-installed-pythonpath inputs outputs) + (invoke "python" "example/example.py" "--local")) + #t)))))) + (propagated-inputs + `(("python-ipyparallel" ,python-ipyparallel) + ("python-ipython" ,python-ipython) + ("python-netifaces" ,python-netifaces) + ("python-pyzmq" ,python-pyzmq) + ("python-setuptools" ,python-setuptools) + ("python-six" ,python-six))) + (home-page "https://github.com/roryk/ipython-cluster-helper") + (synopsis + "Simplify IPython cluster start up and use for multiple schedulers") + (description + "@code{ipython-cluster-helper} creates a throwaway parallel IPython +profile, launches a cluster and returns a view. On program exit it shuts the +cluster down and deletes the throwaway profile.") + (license license:expat))) + +(define-public python2-ipython-cluster-helper + (package-with-python2 python-ipython-cluster-helper)) + (define-public python-traitlets (package (name "python-traitlets") -- 2.25.1