From: Marius Bakke <mbakke@fastmail.com>
To: guix-devel@gnu.org
Subject: [PATCH 1/3] gnu: Add python-pytest-pep8.
Date: Sun, 11 Sep 2016 15:07:35 +0100 [thread overview]
Message-ID: <20160911140737.24248-1-mbakke@fastmail.com> (raw)
* gnu/packages/python.scm (python-pytest-pep8, python2-pytest-pep8): New
variables.
---
gnu/packages/python.scm | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 8b9273c..21eda38 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -10327,3 +10327,36 @@ Python to manipulate OpenDocument 1.2 files.")
(native-inputs
`(("python2-setuptools" ,python2-setuptools)
,@(package-native-inputs base))))))
+
+(define-public python-pytest-pep8
+ (package
+ (name "python-pytest-pep8")
+ (version "1.0.6")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "pytest-pep8" version))
+ (sha256
+ (base32
+ "06032agzhw1i9d9qlhfblnl3dw5hcyxhagn7b120zhrszbjzfbh3"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:tests? #f ; Fails with recent pytest and pep8. See upstream issues #8 and #12.
+ ;; Prevent creation of the egg. This works around
+ ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=20765 .
+ #:configure-flags '("--single-version-externally-managed" "--root=/")))
+ (native-inputs
+ `(("python-pytest" ,python-pytest)))
+ (propagated-inputs
+ `(("python-pep8" ,python-pep8)))
+ (home-page "https://bitbucket.org/pytest-dev/pytest-pep8")
+ (synopsis "Py.test plugin to check PEP8 requirements")
+ (description "Pytest plugin for efficiently checking PEP8 compliance")
+ (license license:expat)
+ (properties `((python2-variant . ,(delay python2-pytest-pep8))))))
+
+(define-public python2-pytest-pep8
+ (let ((base (package-with-python2 (strip-python2-variant python-pytest-pep8))))
+ (package (inherit base)
+ (native-inputs
+ `(("python2-setuptools" ,python2-setuptools)
+ ,@(package-native-inputs base))))))
--
2.9.3
next reply other threads:[~2016-09-11 14:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-11 14:07 Marius Bakke [this message]
2016-09-11 14:07 ` [PATCH 2/3] gnu: Add python-pytest-flakes Marius Bakke
2016-09-14 21:42 ` Leo Famulari
2016-09-11 14:07 ` [PATCH 3/3] gnu: Add python-natsort Marius Bakke
2016-09-15 0:57 ` Leo Famulari
2016-09-14 21:41 ` [PATCH 1/3] gnu: Add python-pytest-pep8 Leo Famulari
2016-09-14 22:39 ` Marius Bakke
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160911140737.24248-1-mbakke@fastmail.com \
--to=mbakke@fastmail.com \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.