From patchwork Fri Oct 18 16:06:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tanguy LE CARROUR X-Patchwork-Id: 15761 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 3A91E175D7; Fri, 18 Oct 2019 17:07:29 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id A17DC175D5 for ; Fri, 18 Oct 2019 17:07:28 +0100 (BST) Received: from localhost ([::1]:42574 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLUml-0002P8-HB for patchwork@mira.cbaines.net; Fri, 18 Oct 2019 12:07:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48478) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLUmP-0002Na-Io for guix-patches@gnu.org; Fri, 18 Oct 2019 12:07:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iLUmM-0005rI-Pi for guix-patches@gnu.org; Fri, 18 Oct 2019 12:07:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42642) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iLUmM-0005r4-CX for guix-patches@gnu.org; Fri, 18 Oct 2019 12:07:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iLUmM-0002GL-4W for guix-patches@gnu.org; Fri, 18 Oct 2019 12:07:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#37704] [PATCH v2 9/9] gnu: Add python-poetry. References: <20191011163447.utqgomsalw7r6nul@rafflesia> In-Reply-To: <20191011163447.utqgomsalw7r6nul@rafflesia> Resent-From: Tanguy Le Carrour Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 18 Oct 2019 16:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37704 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 37704@debbugs.gnu.org Received: via spool by 37704-submit@debbugs.gnu.org id=B37704.15714147938649 (code B ref 37704); Fri, 18 Oct 2019 16:07:02 +0000 Received: (at 37704) by debbugs.gnu.org; 18 Oct 2019 16:06:33 +0000 Received: from localhost ([127.0.0.1]:51463 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iLUls-0002FR-PI for submit@debbugs.gnu.org; Fri, 18 Oct 2019 12:06:33 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:34169) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iLUlr-0002FF-7M for 37704@debbugs.gnu.org; Fri, 18 Oct 2019 12:06:31 -0400 Received: from localhost (176-159-32-89.abo.bbox.fr [176.159.32.89]) (Authenticated sender: tanguy@bioneland.org) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 383DA20000C for <37704@debbugs.gnu.org>; Fri, 18 Oct 2019 16:06:28 +0000 (UTC) Date: Fri, 18 Oct 2019 18:06:28 +0200 From: Tanguy Le Carrour Message-ID: <20191018160628.4eipiqeqntuojxme@rafflesia> MIME-Version: 1.0 Content-Disposition: inline User-Agent: NeoMutt/20180716 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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 As suggested by Oleg [1], I've changed the names of the package and the public variable. [1]: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37613 From d4f5faa7e2c4ce07da08911e70e5db641dc4df27 Mon Sep 17 00:00:00 2001 From: Tanguy Le Carrour Date: Wed, 9 Oct 2019 10:41:23 +0200 Subject: [PATCH v2 9/9] gnu: Add poetry. * gnu/packages/python-xyz.scm (poetry): New public variable. --- gnu/packages/python-xyz.scm | 46 +++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 3d51c63530..0c93591c3e 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -10748,6 +10748,52 @@ powerful API: thread-safety; decorator syntax; support for memcached, redis, database, file, dict stores. Cachy supports python versions 2.7+ and 3.2+.") (license license:expat))) +(define-public poetry + (package + (name "poetry") + (version "0.12.17") + ;; Poetry can only be built from source with poetry. + (source + (origin + (method url-fetch) + (uri (pypi-uri "poetry" version)) + (sha256 + (base32 + "0gxwcd65qjmzqzppf53x51sic1rbcd9py6cdzx3aprppipimslvf")))) + (build-system python-build-system) + (arguments + `(#:tests? #f ;; Pypi does not have tests. + #:phases + (modify-phases %standard-phases + (replace 'build + (lambda _ + ;; Bug in poetry https://github.com/sdispater/poetry/issues/866. + (invoke "sed" "-i" "-e" "s/from distutils.core/from setuptools/" "setup.py") + #t))))) + (propagated-inputs + `(("python-cachecontrol" ,python-cachecontrol) + ("python-cachy" ,python-cachy) + ("python-cleo" ,python-cleo) + ("python-glob2" ,python-glob2) + ("python-html5lib" ,python-html5lib) + ("python-jsonschema" ,python-jsonschema) + ("python-msgpack" ,python-msgpack) + ("python-pathlib2" ,python-pathlib2) + ("python-pkginfo" ,python-pkginfo) + ("python-pyparsing" ,python-pyparsing) + ("python-pyrsistent" ,python-pyrsistent) + ("python-requests" ,python-requests) + ("python-requests-toolbelt" ,python-requests-toolbelt) + ("python-shellingham" ,python-shellingham) + ("python-tomlkit" ,python-tomlkit) + ("python-virtualenv" ,python-virtualenv))) + (home-page "https://poetry.eustace.io/") + (synopsis "Python dependency management and packaging made easy") + (description "Poetry is a tool for dependency management and packaging +in Python. It allows you to declare the libraries your project depends on and +it will manage (install/update) them for you.") + (license license:expat))) + (define-public python-lazy-object-proxy (package (name "python-lazy-object-proxy")