[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
15/20: gnu: python-flake8: Update to 3.4.1.
From: |
Marius Bakke |
Subject: |
15/20: gnu: python-flake8: Update to 3.4.1. |
Date: |
Wed, 18 Oct 2017 18:19:42 -0400 (EDT) |
mbakke pushed a commit to branch python-updates
in repository guix.
commit a0fd9a3ca9df2ea7d68c7e3e18cea16eac0fa48b
Author: Marius Bakke <address@hidden>
Date: Mon Jul 31 01:47:46 2017 +0200
gnu: python-flake8: Update to 3.4.1.
* gnu/packages/python.scm (python-flake8): Update to 3.4.1.
[source]: Remove obsolete snippet.
[arguments]: Override 'check' phase.
[propagated-inputs]: Remove PYTHON-PEP8. Add PYTHON-PYCODESTYLE and
PYTHON-SETUPTOOLS.
[native-inputs]: Change PYTHON-MOCK to PYTHON-MOCK-2. Remove PYTHON-NOSE.
Add
PYTHON-PYTEST-BOOTSTRAP and PYTHON-PYTEST-RUNNER.
[properties]: Declare python2 variant.
* gnu/packages/python.scm (python-flake8)[propagated-inputs]: Add
PYTHON2-ENUM
and PYTHON2-CONFIGPARSER.
---
gnu/packages/python.scm | 37 +++++++++++++++++++++++--------------
1 file changed, 23 insertions(+), 14 deletions(-)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 13943df..2023e8c 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -7106,39 +7106,48 @@ complexity of Python source code.")
(define-public python-flake8
(package
(name "python-flake8")
- (version "2.5.4")
+ (version "3.4.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "flake8" version))
(sha256
(base32
- "0bs9cz4fr99r2rwig1b8jwaadl1nan7kgpdzqwj0bwbckwbmh7nc"))
- (modules '((guix build utils)))
- (snippet
- '(begin
- ;; Remove pre-compiled .pyc files from source.
- (for-each delete-file-recursively
- (find-files "." "__pycache__" #:directories? #t))
- (for-each delete-file (find-files "." "\\.pyc$"))
- #t))))
+ "1n0i38592vy3q0x2a9bf8z6rhhn04i30wsn5i5zzcj7qkxvl8062"))))
(build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (delete 'check)
+ (add-after 'install 'check
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (add-installed-pythonpath inputs outputs)
+ (zero? (system* "pytest" "-v")))))))
(propagated-inputs
- `(("python-pep8" ,python-pep8)
+ `(("python-pycodestyle" ,python-pycodestyle)
("python-pyflakes" ,python-pyflakes)
+ ;; flake8 depends on a newer setuptools than provided by python.
+ ("python-setuptools" ,python-setuptools)
("python-mccabe" ,python-mccabe)))
(native-inputs
- `(("python-mock" ,python-mock) ; TODO: only required for < 3.3
- ("python-nose" ,python-nose)))
+ `(("python-mock" ,python-mock-2) ; TODO: only required for < 3.3
+ ("python-pytest" ,python-pytest-bootstrap)
+ ("python-pytest-runner" ,python-pytest-runner)))
(home-page "https://gitlab.com/pycqa/flake8")
(synopsis
"The modular source code checker: pep8, pyflakes and co")
(description
"Flake8 is a wrapper around PyFlakes, pep8 and python-mccabe.")
+ (properties `((python2-variant . ,(delay python2-flake8))))
(license license:expat)))
(define-public python2-flake8
- (package-with-python2 python-flake8))
+ (let ((base (package-with-python2 (strip-python2-variant python-flake8))))
+ (package (inherit base)
+ (propagated-inputs
+ `(("python2-configparser" ,python2-configparser)
+ ("python2-enum" ,python2-enum)
+ ,@(package-propagated-inputs base))))))
(define-public python-flake8-polyfill
(package
- branch python-updates created (now 71d9f56), Marius Bakke, 2017/10/18
- 04/20: gnu: python-six: Really enable tests., Marius Bakke, 2017/10/18
- 03/20: gnu: python-py: Update to 1.4.34., Marius Bakke, 2017/10/18
- 05/20: gnu: python-six: Update to 1.11.0., Marius Bakke, 2017/10/18
- 07/20: gnu: python-pytest: Add a minimal variant for bootstrapping., Marius Bakke, 2017/10/18
- 10/20: gnu: python-pyflakes: Update to 1.5.0., Marius Bakke, 2017/10/18
- 09/20: gnu: python-pytest: Update to 3.2.3., Marius Bakke, 2017/10/18
- 17/20: gnu: Remove address@hidden, Marius Bakke, 2017/10/18
- 08/20: gnu: python-setuptools-scm: Update to 1.15.6., Marius Bakke, 2017/10/18
- 18/20: gnu: python-jinja2: Remove workaround for < Python 3.6., Marius Bakke, 2017/10/18
- 15/20: gnu: python-flake8: Update to 3.4.1.,
Marius Bakke <=
- 06/20: gnu: Remove address@hidden, Marius Bakke, 2017/10/18
- 12/20: gnu: address@hidden: Add dependency on python-six., Marius Bakke, 2017/10/18
- 11/20: gnu: python-mccabe: Update to 0.6.1., Marius Bakke, 2017/10/18
- 01/20: gnu: address@hidden: Update to 2.7.14., Marius Bakke, 2017/10/18
- 20/20: gnu: python-coverage: Update to 4.4.1., Marius Bakke, 2017/10/18
- 16/20: gnu: Add python2-funcsigs., Marius Bakke, 2017/10/18
- 13/20: gnu: Fix pytest dependency cycle., Marius Bakke, 2017/10/18
- 14/20: gnu: Add python2-enum., Marius Bakke, 2017/10/18
- 19/20: gnu: python-unittest2: Update to 1.1.0., Marius Bakke, 2017/10/18
- 02/20: gnu: address@hidden: Update to 3.6.3., Marius Bakke, 2017/10/18