gnu: python2-pylint: Remove package.

* gnu/packages/check.scm (python-pylint)[properties]: Delete field.
* gnu/packages/check.scm (python2-pylint): Remove variable.
This commit is contained in:
Maxim Cournoyer 2021-01-14 14:10:14 -05:00
parent ccdc0e5e08
commit 5d7d7e8505
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -2093,51 +2093,8 @@ (define-public python-pylint
all on a minimally sized program. It's highly configurable and handle all on a minimally sized program. It's highly configurable and handle
pragmas to control it from within your code. Additionally, it is pragmas to control it from within your code. Additionally, it is
possible to write plugins to add your own checks.") possible to write plugins to add your own checks.")
(properties `((python2-variant . ,(delay python2-pylint))))
(license license:gpl2+))) (license license:gpl2+)))
;; Python2 is not supported anymore by Pylint. See:
;; https://github.com/PyCQA/pylint/issues/1763.
(define-public python2-pylint
(let ((pylint (package-with-python2
(strip-python2-variant python-pylint))))
(package (inherit pylint)
(version "1.9.5")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/PyCQA/pylint")
(commit (string-append "pylint-" version))))
(file-name (git-file-name (package-name pylint) version))
(sha256
(base32
"02a89d8a47s7nfiv1ady3j0sg2sbyja3np145brarfp5x9qxz9x2"))))
(arguments
`(,@(strip-keyword-arguments '(#:tests?) (package-arguments pylint))
#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
;; Somehow, tests fail if run from the build directory.
(let ((work "/tmp/work"))
(mkdir-p work)
(setenv "PYTHONPATH"
(string-append (getenv "PYTHONPATH") ":" work))
(copy-recursively "." work)
(with-directory-excursion "/tmp"
(invoke "python" "-m" "unittest" "discover"
"-s" (string-append work "/pylint/test")
"-p" "*test_*.py"))))))))
(native-inputs
`(("python2-futures" ,python2-futures)
,@(package-native-inputs pylint)))
(propagated-inputs
`(("python2-backports-functools-lru-cache"
,python2-backports-functools-lru-cache)
("python2-configparser" ,python2-configparser)
,@(package-propagated-inputs pylint))))))
(define-public python-paramunittest (define-public python-paramunittest
(package (package
(name "python-paramunittest") (name "python-paramunittest")