nixpkgs/pkgs/development/python-modules/pylint/default.nix

45 lines
1.2 KiB
Nix
Raw Normal View History

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