2017-03-03 01:51:55 +00:00
|
|
|
{ stdenv, fetchurl, buildPythonPackage, python, astroid, isort,
|
|
|
|
pytest, mccabe, configparser, backports_functools_lru_cache }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "pylint";
|
2017-05-27 13:24:47 +01:00
|
|
|
version = "1.7.1";
|
2017-03-03 01:51:55 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://pypi/p/${pname}/${name}.tar.gz";
|
2017-05-27 13:24:47 +01:00
|
|
|
sha256 = "8b4a7ab6cf5062e40e2763c0b4a596020abada1d7304e369578b522e46a6264a";
|
2017-03-03 01:51:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pytest mccabe configparser backports_functools_lru_cache ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ astroid isort ];
|
|
|
|
|
|
|
|
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";
|
2017-04-29 05:24:34 +01:00
|
|
|
platforms = platforms.all;
|
2017-03-03 01:51:55 +00:00
|
|
|
license = licenses.gpl1Plus;
|
|
|
|
maintainers = with maintainers; [ nand0p ];
|
|
|
|
};
|
|
|
|
}
|