blob: 8861a364b0fa313b746223f6ebae5e0f49e7b071 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
{ stdenv, lib, buildPythonPackage, fetchPypi, pythonOlder, astroid,
isort, mccabe, pytestCheckHook, pytestrunner }:
buildPythonPackage rec {
pname = "pylint";
version = "2.4.3";
disabled = pythonOlder "3.4";
src = fetchPypi {
inherit pname version;
sha256 = "856476331f3e26598017290fd65bebe81c960e806776f324093a46b76fb2d1c0";
};
nativeBuildInputs = [ pytestrunner ];
checkInputs = [ pytestCheckHook ];
propagatedBuildInputs = [ astroid isort mccabe ];
postPatch = lib.optionalString stdenv.isDarwin ''
# Remove broken darwin test
rm -vf pylint/test/test_functional.py
'';
disabledTests = [
# https://github.com/PyCQA/pylint/issues/3198
"test_by_module_statement_value"
] ++ lib.optionals stdenv.isDarwin [
"test_parallel_execution"
"test_py3k_jobs_option"
];
dontUseSetuptoolsCheck = true;
postInstall = ''
mkdir -p $out/share/emacs/site-lisp
cp "elisp/"*.el $out/share/emacs/site-lisp/
'';
meta = with lib; {
homepage = https://github.com/PyCQA/pylint;
description = "A bug and style checker for Python";
platforms = platforms.all;
license = licenses.gpl1Plus;
maintainers = with maintainers; [ nand0p ];
};
}
|