[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/05: gnu: Add python-doc8.
From: |
guix-commits |
Subject: |
04/05: gnu: Add python-doc8. |
Date: |
Wed, 29 Apr 2020 07:46:45 -0400 (EDT) |
rekado pushed a commit to branch master
in repository guix.
commit ff5ca61d15e979f1a91d77f950af13c76dd9b00a
Author: Ricardo Wurmus <address@hidden>
AuthorDate: Wed Apr 29 13:41:13 2020 +0200
gnu: Add python-doc8.
* gnu/packages/python-xyz.scm (python-doc8): New variable.
---
gnu/packages/python-xyz.scm | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 45789d7..decc1ce 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -3244,6 +3244,45 @@ reStructuredText.")
format.")
(license license:unlicense)))
+(define-public python-doc8
+ (package
+ (name "python-doc8")
+ (version "0.8.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "doc8" version))
+ (sha256
+ (base32
+ "0hw5w8mpgsp51qg8nnq28p7y1jiksvz7a0axnn5bkgss3af9zy1d"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (delete 'check)
+ (add-after 'install 'check
+ (lambda* (#:key inputs outputs tests? #:allow-other-keys)
+ (when tests?
+ (add-installed-pythonpath inputs outputs)
+ (invoke "pytest" "-v"))
+ #t)))))
+ (propagated-inputs
+ `(("python-chardet" ,python-chardet)
+ ("python-docutils" ,python-docutils)
+ ("python-restructuredtext-lint" ,python-restructuredtext-lint)
+ ("python-six" ,python-six)
+ ("python-stevedore" ,python-stevedore)))
+ (native-inputs
+ `(("python-testtools" ,python-testtools)
+ ("python-pytest" ,python-pytest)))
+ (home-page "https://launchpad.net/doc8")
+ (synopsis
+ "Style checker for Sphinx (or other) RST documentation")
+ (description
+ "Doc8 is an opinionated style checker for reStructured Text and plain
+text styles of documentation.")
+ (license license:asl2.0)))
+
(define-public python-pygments
(package
(name "python-pygments")