From patchwork Sun Sep 25 21:17:27 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marius Bakke X-Patchwork-Id: 15996 Received: (qmail 10164 invoked by uid 89); 25 Sep 2016 21:18:39 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.99.2 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.9 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:2100, responsive, 0115 X-Spam-Status: No, score=-4.9 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-HELO: lists.gnu.org Received: from lists.gnu.org (HELO lists.gnu.org) (208.118.235.17) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 25 Sep 2016 21:18:29 +0000 Received: from localhost ([::1]:40448 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1boGod-0002Lc-6b for patchwork@sourceware.org; Sun, 25 Sep 2016 17:18:27 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45311) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1boGoQ-0002Fw-O7 for guix-devel@gnu.org; Sun, 25 Sep 2016 17:18:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1boGoP-0004ap-Ok for guix-devel@gnu.org; Sun, 25 Sep 2016 17:18:14 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:49986) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1boGoN-0004YX-FU for guix-devel@gnu.org; Sun, 25 Sep 2016 17:18:13 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id AC6AE20469; Sun, 25 Sep 2016 17:18:02 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Sun, 25 Sep 2016 17:18:02 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.com; h=cc :date:from:in-reply-to:message-id:references:subject:to :x-sasl-enc:x-sasl-enc; s=mesmtp; bh=WFWRS6RqZhca3ZezERxADiAkV6E =; b=G8D/jNlZj40J0CE4N/OKUKbTuqGkdJKCNEmksO3xS4fKv2Hi1tqXaecvnzS HhlJOQRw1Q8+TjcMUwMFB2eHwNv6aQyraaV/dMtGYVl8+ycBTFNMQzpu6AjVNx2k JFffgrcGfTIVYvX0ZX2w6ih65GrGKJBMC3R1Zttq2ubZRQmU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=WFWR S6RqZhca3ZezERxADiAkV6E=; b=tabUMiCPSXRHoCaklZv2MJ/GeBSyt4hXRFXY vkXRu+wVLrfwoS9MvZxBZJK6ZfsBhl5Qr1MkFBaxUTSq0gNXWtm57g5WtXLQYnqI lyJtm+vknrQ2vOlrFzJmIGC4x9oh+dG1RWUSku4fYUsshR7XWqFFBE3tdRk0PlAu 18C7qRw= X-Sasl-enc: S54aNiG5AZQ++ct9KIrZHDv/rvhgQcL2/ptyyVEl/kPj 1474838282 Received: from localhost (unknown [2.124.155.177]) by mail.messagingengine.com (Postfix) with ESMTPA id 2CEF2F29CC; Sun, 25 Sep 2016 17:18:02 -0400 (EDT) From: Marius Bakke To: guix-devel@gnu.org Subject: [PATCH 3/4] gnu: Add python-sphinx-argparse. Date: Sun, 25 Sep 2016 22:17:27 +0100 Message-Id: <20160925211728.7636-3-mbakke@fastmail.com> X-Mailer: git-send-email 2.10.0 In-Reply-To: <20160925211728.7636-1-mbakke@fastmail.com> References: <20160925211728.7636-1-mbakke@fastmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.26 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Marius Bakke Errors-To: guix-devel-bounces+patchwork=sourceware.org@gnu.org Sender: "Guix-devel" * gnu/packages/python.scm (python-sphinx-argparse, python2-sphinx-argparse): New variables. --- gnu/packages/python.scm | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 4b8caea..bb28363 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -10967,3 +10967,48 @@ mobile-friendly responsive design.") python-sphinx-bootstrap-theme))) (native-inputs `(("python2-setuptools" ,python2-setuptools))))) + +(define-public python-sphinx-argparse + (package + (name "python-sphinx-argparse") + (version "0.1.15") + (source (origin + (method url-fetch) + (uri (pypi-uri "sphinx-argparse" version)) + (sha256 + (base32 + "14wdxq379xxnhw0kgf8z6jqdi0rd4k5y20jllyar9mxwwjblayvq")))) + (build-system python-build-system) + (arguments + `(#:configure-flags '("--single-version-externally-managed" "--root=/") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'adjust-tests + ;; Two tests compare the output of "py.test --help" and fail + ;; when it gets ".py.test-real" back, so we substitute it here. + (lambda _ + (substitute* "test/test_parser.py" + (("py.test") ".py.test-real")) + #t)) + (delete 'check) + (add-after 'install 'check + (lambda _ (zero? (system* "py.test" "-vv"))))))) + (native-inputs + `(("python-pytest" ,python-pytest))) + (propagated-inputs + `(("python-sphinx" ,python-sphinx) + ("python-docutils" ,python-docutils))) + (home-page "https://github.com/ribozz/sphinx-argparse") + (synopsis "Sphinx extension to document argparse commands") + (description "Sphinx extension that automatically documents @code{argparse} +commands and options.") + (license license:expat) + (properties `((python2-variant . ,(delay python2-sphinx-argparse)))))) + +(define-public python2-sphinx-argparse + (let ((base (package-with-python2 (strip-python2-variant + python-sphinx-argparse)))) + (package (inherit base) + (native-inputs + `(("python2-setuptools" ,python2-setuptools) + ,@(package-native-inputs base))))))