Merge pull request #23444 from nand0p/pylint-1.6.5

Pylint 1.6.5

authored by Jörg Thalheim and committed by GitHub bcef9f83 fc57e634

+78 -48
+34
pkgs/development/python-modules/astroid/default.nix
··· 1 + { stdenv, fetchurl, buildPythonPackage, python, logilab_common, six, 2 + lazy-object-proxy, wrapt }: 3 + 4 + buildPythonPackage rec { 5 + name = "${pname}-${version}"; 6 + pname = "astroid"; 7 + version = "1.4.9"; 8 + 9 + src = fetchurl { 10 + url = "mirror://pypi/a/${pname}/${name}.tar.gz"; 11 + sha256 = "1mw5q20b80j55vbpcdfl824sbb1q15dhkfbczjnnv8733j4yg0x4"; 12 + }; 13 + 14 + propagatedBuildInputs = [ logilab_common six lazy-object-proxy wrapt ]; 15 + 16 + postPatch = '' 17 + cd astroid/tests 18 + for i in $(ls unittest*); do mv -v $i test_$i; done 19 + cd ../.. 20 + rm -vf astroid/tests/test_unittest_inference.py 21 + ''; 22 + 23 + checkPhase = '' 24 + ${python.interpreter} -m unittest discover 25 + ''; 26 + 27 + meta = with stdenv.lib; { 28 + description = "A abstract syntax tree for Python with inference support"; 29 + homepage = http://bitbucket.org/logilab/astroid; 30 + license = licenses.lgpl2; 31 + platform = platforms.all; 32 + maintainers = with maintainers; [ nand0p ]; 33 + }; 34 + }
+42
pkgs/development/python-modules/pylint/default.nix
··· 1 + { stdenv, fetchurl, buildPythonPackage, python, astroid, isort, 2 + pytest, mccabe, configparser, backports_functools_lru_cache }: 3 + 4 + buildPythonPackage rec { 5 + name = "${pname}-${version}"; 6 + pname = "pylint"; 7 + version = "1.6.5"; 8 + 9 + src = fetchurl { 10 + url = "mirror://pypi/p/${pname}/${name}.tar.gz"; 11 + sha256 = "06b78nl996949a7h01c4ycy8779hl5cm7vpxij5lm3npim59hwx6"; 12 + }; 13 + 14 + buildInputs = [ pytest mccabe configparser backports_functools_lru_cache ]; 15 + 16 + propagatedBuildInputs = [ astroid isort ]; 17 + 18 + postPatch = '' 19 + # Remove broken darwin tests 20 + sed -i -e '/test_parallel_execution/,+2d' pylint/test/test_self.py 21 + sed -i -e '/test_py3k_jobs_option/,+4d' pylint/test/test_self.py 22 + rm -vf pylint/test/test_functional.py 23 + ''; 24 + 25 + checkPhase = '' 26 + cd pylint/test 27 + ${python.interpreter} -m unittest discover -p "*test*" 28 + ''; 29 + 30 + postInstall = '' 31 + mkdir -p $out/share/emacs/site-lisp 32 + cp "elisp/"*.el $out/share/emacs/site-lisp/ 33 + ''; 34 + 35 + meta = with stdenv.lib; { 36 + homepage = http://www.logilab.org/project/pylint; 37 + description = "A bug and style checker for Python"; 38 + platform = platforms.all; 39 + license = licenses.gpl1Plus; 40 + maintainers = with maintainers; [ nand0p ]; 41 + }; 42 + }
+2 -48
pkgs/top-level/python-packages.nix
··· 1393 1393 }; 1394 1394 }); 1395 1395 1396 - astroid = buildPythonPackage rec { 1397 - name = "astroid-1.4.4"; 1398 - 1399 - propagatedBuildInputs = with self; [ logilab_common six lazy-object-proxy wrapt ]; 1400 - 1401 - src = pkgs.fetchurl { 1402 - url = "mirror://pypi/a/astroid/${name}.tar.gz"; 1403 - sha256 = "7f7e5512efe515098e77cbd3a60e87c8db8954097b0e025d8d6f72f2e8ddc298"; 1404 - }; 1405 - 1406 - checkPhase = '' 1407 - ${python.interpreter} -m unittest discover 1408 - ''; 1409 - 1410 - # Tests cannot be found because they're named unittest_... 1411 - # instead of test_... 1412 - 1413 - meta = { 1414 - description = "A abstract syntax tree for Python with inference support"; 1415 - homepage = http://bitbucket.org/logilab/astroid; 1416 - license = with licenses; [ lgpl2 ]; 1417 - }; 1418 - }; 1396 + astroid = callPackage ../development/python-modules/astroid { }; 1419 1397 1420 1398 attrdict = buildPythonPackage (rec { 1421 1399 name = "attrdict-2.0.0"; ··· 20457 20435 }; 20458 20436 }; 20459 20437 20460 - pylint = buildPythonPackage rec { 20461 - name = "pylint-${version}"; 20462 - version = "1.5.4"; 20463 - 20464 - src = pkgs.fetchurl { 20465 - url = "mirror://pypi/p/pylint/${name}.tar.gz"; 20466 - sha256 = "2fe3cc2fc66a56fdc35dbbc2bf1dd96a534abfc79ee6b2ad9ae4fe166e570c4b"; 20467 - }; 20468 - 20469 - propagatedBuildInputs = with self; [ astroid ]; 20470 - 20471 - checkPhase = '' 20472 - cd pylint/test; ${python.interpreter} -m unittest discover -p "*test*" 20473 - ''; 20474 - 20475 - postInstall = '' 20476 - mkdir -p $out/share/emacs/site-lisp 20477 - cp "elisp/"*.el $out/share/emacs/site-lisp/ 20478 - ''; 20479 - 20480 - meta = { 20481 - homepage = http://www.logilab.org/project/pylint; 20482 - description = "A bug and style checker for Python"; 20483 - }; 20484 - }; 20438 + pylint = callPackage ../development/python-modules/pylint { }; 20485 20439 20486 20440 pyopencl = callPackage ../development/python-modules/pyopencl { }; 20487 20441