2
0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-01-02 11:03:57 +00:00
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-08-13 07:30:48 +00:00
version = "2.1.1";
2018-07-24 15:53:48 +00:00
disabled = pythonOlder "3.4";
2017-09-06 15:28:21 +00:00
src = fetchPypi {
inherit pname version;
2018-08-13 07:30:48 +00:00
sha256 = "31142f764d2a7cd41df5196f9933b12b7ee55e73ef12204b648ad7e556c119fb";
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 ];
};
}