@@ -1,5 +1,5 @@
1−{ stdenv, buildPythonPackage, fetchPypi, python, pythonOlder, astroid, isort,
2− pytest, pytestrunner, mccabe, pytest_xdist, pyenchant }:
1+{ stdenv, lib, buildPythonPackage, fetchPypi, python, pythonOlder, astroid,
2+ isort, mccabe, pytest, pytestrunner, pyenchant }:
33
44buildPythonPackage rec {
55 pname = "pylint";
@@ -12,21 +12,25 @@ buildPythonPackage rec {
1212 sha256 = "31142f764d2a7cd41df5196f9933b12b7ee55e73ef12204b648ad7e556c119fb";
1313 };
1414
15− checkInputs = [ pytest pytestrunner pytest_xdist pyenchant ];
15+ checkInputs = [ pytest pytestrunner pyenchant ];
1616
1717 propagatedBuildInputs = [ astroid isort mccabe ];
1818
19− postPatch = ''
19+ postPatch = lib.optionalString stdenv.isDarwin ''
2020 # Remove broken darwin test
2121 rm -vf pylint/test/test_functional.py
2222 '';
2323
2424 checkPhase = ''
25− cat pylint/test/test_self.py
26− # Disable broken darwin tests
27− pytest pylint/test -k "not test_parallel_execution \
28− and not test_py3k_jobs_option \
29− and not test_good_comprehension_checks"
25+ pytest pylint/test -k "not ${lib.concatStringsSep " and not " (
26+ # Broken test
27+ [ "test_good_comprehension_checks" ] ++
28+ # Disable broken darwin tests
29+ lib.optionals stdenv.isDarwin [
30+ "test_parallel_execution"
31+ "test_py3k_jobs_option"
32+ ]
33+ )}"
3034 '';
3135
3236 postInstall = ''
@@ -34,8 +38,8 @@ buildPythonPackage rec {
3438 cp "elisp/"*.el $out/share/emacs/site-lisp/
3539 '';
3640
37− meta = with stdenv.lib; {
38− homepage = https://www.logilab.org/project/pylint;
41+ meta = with lib; {
42+ homepage = https://github.com/PyCQA/pylint;
3943 description = "A bug and style checker for Python";
4044 platforms = platforms.all;
4145 license = licenses.gpl1Plus;