[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#26524: [PATCH 4/5] gnu: Add python2-steadymark
From: |
Muriithi Frederick Muriuki |
Subject: |
bug#26524: [PATCH 4/5] gnu: Add python2-steadymark |
Date: |
Sun, 28 May 2017 18:32:40 +0300 |
* 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
address@hidden 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