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

45 lines
1.2 KiB
Nix
Raw Normal View History

2018-07-24 16:53:48 +01:00
{ stdenv, buildPythonPackage, fetchPypi, python, pythonOlder, astroid, isort,
pytest, pytestrunner, mccabe, pytest_xdist, pyenchant }:
2017-09-06 16:28:21 +01:00
buildPythonPackage rec {
pname = "pylint";
2018-07-24 16:53:48 +01:00
version = "2.0.1";
disabled = pythonOlder "3.4";
2017-09-06 16:28:21 +01:00
src = fetchPypi {
inherit pname version;
2018-07-24 16:53:48 +01:00
sha256 = "2c90a24bee8fae22ac98061c896e61f45c5b73c2e0511a4bf53f99ba56e90434";
2017-09-06 16:28:21 +01:00
};
2018-07-24 16:53:48 +01:00
checkInputs = [ pytest pytestrunner pytest_xdist pyenchant ];
2017-09-06 16:28:21 +01:00
2018-07-24 16:53:48 +01:00
propagatedBuildInputs = [ astroid isort mccabe ];
2017-09-06 16:28:21 +01:00
postPatch = ''
2018-07-24 16:53:48 +01:00
# Remove broken darwin test
2017-09-06 16:28:21 +01:00
rm -vf pylint/test/test_functional.py
'';
checkPhase = ''
2018-07-24 16:53:48 +01:00
cat pylint/test/test_self.py
# Disable broken darwin tests
pytest pylint/test -k "not test_parallel_execution \
and not test_py3k_jobs_option \
and not test_good_comprehension_checks"
2017-09-06 16:28:21 +01:00
'';
postInstall = ''
mkdir -p $out/share/emacs/site-lisp
cp "elisp/"*.el $out/share/emacs/site-lisp/
'';
meta = with stdenv.lib; {
2018-06-27 21:12:57 +01:00
homepage = https://www.logilab.org/project/pylint;
2017-09-06 16:28:21 +01:00
description = "A bug and style checker for Python";
platforms = platforms.all;
license = licenses.gpl1Plus;
maintainers = with maintainers; [ nand0p ];
};
}