2017-09-06 16:28:21 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, python, astroid, isort,
|
2017-05-29 02:07:53 +01:00
|
|
|
pytest, pytestrunner, mccabe, configparser, backports_functools_lru_cache }:
|
2017-03-03 01:51:55 +00:00
|
|
|
|
2017-09-06 16:28:21 +01:00
|
|
|
buildPythonPackage rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "pylint";
|
2018-02-03 09:54:04 +00:00
|
|
|
version = "1.8.2";
|
2017-09-06 16:28:21 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-02-03 09:54:04 +00:00
|
|
|
sha256 = "4fe3b99da7e789545327b75548cee6b511e4faa98afe268130fea1af4b5ec022";
|
2017-09-06 16:28:21 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pytest pytestrunner mccabe configparser backports_functools_lru_cache ];
|
|
|
|
|
2018-03-01 10:44:07 +00:00
|
|
|
propagatedBuildInputs = [ astroid configparser isort mccabe ];
|
2017-09-06 16:28:21 +01:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# Remove broken darwin tests
|
|
|
|
sed -i -e '/test_parallel_execution/,+2d' pylint/test/test_self.py
|
|
|
|
sed -i -e '/test_py3k_jobs_option/,+4d' pylint/test/test_self.py
|
|
|
|
rm -vf pylint/test/test_functional.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
cd pylint/test
|
|
|
|
${python.interpreter} -m unittest discover -p "*test*"
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/emacs/site-lisp
|
|
|
|
cp "elisp/"*.el $out/share/emacs/site-lisp/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://www.logilab.org/project/pylint;
|
|
|
|
description = "A bug and style checker for Python";
|
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.gpl1Plus;
|
|
|
|
maintainers = with maintainers; [ nand0p ];
|
|
|
|
};
|
|
|
|
}
|