1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-15 09:03:48 +00:00
nixpkgs/pkgs/development/python-modules/pylint/default.nix
2018-04-08 11:36:07 +02:00

43 lines
1.2 KiB
Nix

{ stdenv, buildPythonPackage, fetchPypi, python, astroid, isort,
pytest, pytestrunner, mccabe, configparser, backports_functools_lru_cache }:
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "pylint";
version = "1.8.4";
src = fetchPypi {
inherit pname version;
sha256 = "34738a82ab33cbd3bb6cd4cef823dbcabdd2b6b48a4e3a3054a2bbbf0c712be9";
};
buildInputs = [ pytest pytestrunner mccabe configparser backports_functools_lru_cache ];
propagatedBuildInputs = [ astroid configparser isort mccabe ];
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 ];
};
}