From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44414) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dF0Bl-0002kw-W1 for guix-patches@gnu.org; Sun, 28 May 2017 11:33:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dF0Bj-0006Ro-ON for guix-patches@gnu.org; Sun, 28 May 2017 11:33:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:39179) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dF0Bj-0006Ri-Kr for guix-patches@gnu.org; Sun, 28 May 2017 11:33:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dF0Bj-0007XT-G5 for guix-patches@gnu.org; Sun, 28 May 2017 11:33:03 -0400 Subject: bug#26524: [PATCH 4/5] gnu: Add python2-steadymark Resent-Message-ID: From: Muriithi Frederick Muriuki Date: Sun, 28 May 2017 18:32:40 +0300 Message-Id: <20170528153241.15637-4-fredmanglis@gmail.com> In-Reply-To: <20170528153241.15637-1-fredmanglis@gmail.com> References: <20170528153241.15637-1-fredmanglis@gmail.com> 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: 26524@debbugs.gnu.org * gnu/packages/python.scm (python2-steadymark): New variable. --- gnu/packages/python.scm | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 86cb034e4..f6b336904 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -15013,3 +15013,45 @@ renderers (e.g. man pages or LaTeX).") (define-public python2-misaka (package-with-python2 python-misaka)) + +(define-public python2-steadymark + ;; This is forced into being a python2 only variant + ;; due to its dependence on couleur that has no support + ;; for python3 + (package + (name "python-steadymark") + (version "0.7.3") + (source + (origin + (method url-fetch) + (uri (pypi-uri "steadymark" version)) + (sha256 + (base32 + "1640i9g8dycql3cc8j0bky0jkzj0q39blfbp4lsgpkprkfgcdk8v")))) + (build-system python-build-system) + (native-inputs + `(("python-couleur" ,python2-couleur) + ("python-sure" ,python2-sure) + ("python-misaka" ,python2-misaka))) + (arguments + `(#:python ,python-2 + #:phases + (modify-phases %standard-phases + (add-before 'build + 'patch-setup-py + (lambda* (#:key inputs #:allow-other-keys) + ;; Update requirements from dependecy==version + ;; to dependency>=version + (substitute* "setup.py" + (("==") ">=")) + #t))))) + (home-page + "http://github.com/gabrielfalcao/steadymark") + (synopsis + "Markdown-based test runner for python. Good for github projects") + (description + "@code{Steadymark} allows documentation to be written in github-flavoured markdown. +The documentation may contain snippets of code surrounded by python code blocks and +@code{Steadymark} will find these snippets and run them, making sure that there are no old +malfunctional examples in the documentation examples.") + (license license:expat))) -- 2.13.0