3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/pylint/default.nix

43 lines
1.3 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, buildPythonPackage, python, astroid, isort,
pytest, pytestrunner, mccabe, configparser, backports_functools_lru_cache }:
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "pylint";
2017-07-28 15:49:08 +01:00
version = "1.7.2";
src = fetchurl {
url = "mirror://pypi/p/${pname}/${name}.tar.gz";
2017-07-28 15:49:08 +01:00
sha256 = "ea6afb93a9ed810cf52ff3838eb3a15e2bf6a81b80de0eaede1ce442caa5ca69";
};
buildInputs = [ pytest pytestrunner mccabe configparser backports_functools_lru_cache ];
propagatedBuildInputs = [ astroid configparser 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";
platforms = platforms.all;
license = licenses.gpl1Plus;
maintainers = with maintainers; [ nand0p ];
};
}