gnu: Remove python-flake8@3.5.
* gnu/packages/python-xyz.scm (python-flake8-3.5): Rename to ... (python-flake8): ... this. Update to 3.6.0. Remove previous variant. [arguments]: Remove phases 'delete-broken-test' and 'fix-problem-with-pycodestyle'. [properties]: Adjust for renamed variable. (python2-flake8-3.5): Rename to ... (python2-flake8): ... this. Remove previous variable. * gnu/packages/check.scm (python-hypothesis)[native-inputs]: Adjust accordingly.
This commit is contained in:
parent
5b972c3256
commit
ac63cf0a69
|
@ -1456,8 +1456,7 @@ instantly.")
|
||||||
"0fvq4mfybm129l978war86mcshkn28dkrxw7lr8549zr9ywvik1c"))))
|
"0fvq4mfybm129l978war86mcshkn28dkrxw7lr8549zr9ywvik1c"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(;; FIXME: Change to python-flake8 in the next rebuild cycle.
|
`(("python-flake8" ,python-flake8)
|
||||||
("python-flake8" ,python-flake8-3.5)
|
|
||||||
("python-pytest" ,python-pytest-bootstrap)))
|
("python-pytest" ,python-pytest-bootstrap)))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
`(("python-attrs" ,python-attrs-bootstrap)
|
`(("python-attrs" ,python-attrs-bootstrap)
|
||||||
|
|
|
@ -5556,35 +5556,20 @@ complexity of Python source code.")
|
||||||
(define-public python2-pyflakes-0.8.1
|
(define-public python2-pyflakes-0.8.1
|
||||||
(package-with-python2 python-pyflakes-0.8.1))
|
(package-with-python2 python-pyflakes-0.8.1))
|
||||||
|
|
||||||
;; This package is used by hypothesis which has thousands of dependent packages.
|
(define-public python-flake8
|
||||||
;; FIXME: Consolidate this with "python-flake8" below in the next rebuild cycle.
|
|
||||||
(define-public python-flake8-3.5
|
|
||||||
(package
|
(package
|
||||||
(name "python-flake8")
|
(name "python-flake8")
|
||||||
(version "3.5.0")
|
(version "3.6.0")
|
||||||
(source
|
(source (origin
|
||||||
(origin
|
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "flake8" version))
|
(uri (pypi-uri "flake8" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"184b33grvvjmiwlv9kyd7yng9qv5ld24154j70z332xxg9gjclvj"))))
|
"0w0nprx22rbvrrkbfx9v5jc5gskbm08g219l7r8wai8zfswgadba"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
`(#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
;; Two errors don't seem to have assigned codes.
|
|
||||||
(add-after 'unpack 'delete-broken-test
|
|
||||||
(lambda _ (delete-file "tests/unit/test_pyflakes_codes.py") #t))
|
|
||||||
(add-after 'unpack 'fix-problem-with-pycodestyle
|
|
||||||
(lambda _
|
|
||||||
;; See https://gitlab.com/pycqa/flake8/merge_requests/230
|
|
||||||
;; This should no longer be needed with the next release.
|
|
||||||
(substitute* "setup.py"
|
|
||||||
(("PEP8_PLUGIN\\('break_around_binary_operator'\\),")
|
|
||||||
"PEP8_PLUGIN('break_after_binary_operator'),\
|
|
||||||
PEP8_PLUGIN('break_before_binary_operator'),"))
|
|
||||||
#t))
|
|
||||||
(delete 'check)
|
(delete 'check)
|
||||||
(add-after 'install 'check
|
(add-after 'install 'check
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
|
@ -5604,44 +5589,16 @@ PEP8_PLUGIN('break_before_binary_operator'),"))
|
||||||
"The modular source code checker: pep8, pyflakes and co")
|
"The modular source code checker: pep8, pyflakes and co")
|
||||||
(description
|
(description
|
||||||
"Flake8 is a wrapper around PyFlakes, pep8 and python-mccabe.")
|
"Flake8 is a wrapper around PyFlakes, pep8 and python-mccabe.")
|
||||||
(properties `((python2-variant . ,(delay python2-flake8-3.5))))
|
(properties `((python2-variant . ,(delay python2-flake8))))
|
||||||
(license license:expat)))
|
(license license:expat)))
|
||||||
|
|
||||||
(define-public python2-flake8-3.5
|
|
||||||
(let ((base (package-with-python2 (strip-python2-variant python-flake8-3.5))))
|
|
||||||
(package (inherit base)
|
|
||||||
(propagated-inputs
|
|
||||||
`(("python2-configparser" ,python2-configparser)
|
|
||||||
("python2-enum34" ,python2-enum34)
|
|
||||||
,@(package-propagated-inputs base))))))
|
|
||||||
|
|
||||||
;; Version 3.5.0 has compatibility issues with Pyflakes 2.0, so we need
|
|
||||||
;; this newer version. Keep it as a separate variable for now to avoid
|
|
||||||
;; rebuilding "python-hypothesis"; this should be removed in the next
|
|
||||||
;; rebuild cycle.
|
|
||||||
(define-public python-flake8
|
|
||||||
(package
|
|
||||||
(inherit python-flake8-3.5)
|
|
||||||
(version "3.6.0")
|
|
||||||
(source (origin
|
|
||||||
(method url-fetch)
|
|
||||||
(uri (pypi-uri "flake8" version))
|
|
||||||
(sha256
|
|
||||||
(base32
|
|
||||||
"0w0nprx22rbvrrkbfx9v5jc5gskbm08g219l7r8wai8zfswgadba"))))
|
|
||||||
(arguments
|
|
||||||
(substitute-keyword-arguments (package-arguments python-flake8-3.5)
|
|
||||||
((#:phases phases)
|
|
||||||
`(modify-phases ,phases
|
|
||||||
(delete 'delete-broken-test)
|
|
||||||
(delete 'fix-problem-with-pycodestyle)))))
|
|
||||||
(properties `((python2-variant . ,(delay python2-flake8))))))
|
|
||||||
|
|
||||||
(define-public python2-flake8
|
(define-public python2-flake8
|
||||||
(let ((base (package-with-python2 (strip-python2-variant python-flake8))))
|
(let ((base (package-with-python2 (strip-python2-variant python-flake8))))
|
||||||
(package (inherit base)
|
(package (inherit base)
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(package-propagated-inputs python2-flake8-3.5)))))
|
`(("python2-configparser" ,python2-configparser)
|
||||||
|
("python2-enum34" ,python2-enum34)
|
||||||
|
,@(package-propagated-inputs base))))))
|
||||||
|
|
||||||
;; python-hacking requires flake8 <2.6.0.
|
;; python-hacking requires flake8 <2.6.0.
|
||||||
(define-public python-flake8-2.5
|
(define-public python-flake8-2.5
|
||||||
|
|
Loading…
Reference in New Issue