python.pkgs.pylint: 2.0.0 -> 2.0.1
This commit is contained in:
parent
3030fab2f1
commit
7f69825334
@ -1,29 +1,32 @@
|
|||||||
{ stdenv, buildPythonPackage, fetchPypi, python, astroid, isort,
|
{ stdenv, buildPythonPackage, fetchPypi, python, pythonOlder, astroid, isort,
|
||||||
pytest, pytestrunner, mccabe, configparser, backports_functools_lru_cache }:
|
pytest, pytestrunner, mccabe, pytest_xdist, pyenchant }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pylint";
|
pname = "pylint";
|
||||||
version = "2.0.0";
|
version = "2.0.1";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.4";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "9cd70527ef3b099543eeabeb5c80ff325d86b477aa2b3d49e264e12d12153bc8";
|
sha256 = "2c90a24bee8fae22ac98061c896e61f45c5b73c2e0511a4bf53f99ba56e90434";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ pytest pytestrunner mccabe configparser backports_functools_lru_cache ];
|
checkInputs = [ pytest pytestrunner pytest_xdist pyenchant ];
|
||||||
|
|
||||||
propagatedBuildInputs = [ astroid configparser isort mccabe ];
|
propagatedBuildInputs = [ astroid isort mccabe ];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
# Remove broken darwin tests
|
# Remove broken darwin test
|
||||||
sed -i -e '/test_parallel_execution/,+2d' pylint/test/test_self.py
|
|
||||||
sed -i -e '/test_py3k_jobs_option/,+4d' pylint/test/test_self.py
|
|
||||||
rm -vf pylint/test/test_functional.py
|
rm -vf pylint/test/test_functional.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
cd pylint/test
|
cat pylint/test/test_self.py
|
||||||
${python.interpreter} -m unittest discover -p "*test*"
|
# Disable broken darwin tests
|
||||||
|
pytest pylint/test -k "not test_parallel_execution \
|
||||||
|
and not test_py3k_jobs_option \
|
||||||
|
and not test_good_comprehension_checks"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user