diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2017-03-03 15:52:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-03 15:52:32 +0100 |
commit | bcef9f83c00905cfc95b00698a99ac2fa7702210 (patch) | |
tree | eb8ffee40fdd2cdffc4aa5d887c0bf66f89eac00 /pkgs/development | |
parent | fc57e634f31db84d26438865f1dc4b737abf6e76 (diff) | |
parent | f40b0f5e3741bd01142574db6eb54a748e19149b (diff) |
Merge pull request #23444 from nand0p/pylint-1.6.5
Pylint 1.6.5
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/astroid/default.nix | 34 | ||||
-rw-r--r-- | pkgs/development/python-modules/pylint/default.nix | 42 |
2 files changed, 76 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/astroid/default.nix b/pkgs/development/python-modules/astroid/default.nix new file mode 100644 index 000000000000..76f58e695f28 --- /dev/null +++ b/pkgs/development/python-modules/astroid/default.nix @@ -0,0 +1,34 @@ +{ stdenv, fetchurl, buildPythonPackage, python, logilab_common, six, + lazy-object-proxy, wrapt }: + + buildPythonPackage rec { + name = "${pname}-${version}"; + pname = "astroid"; + version = "1.4.9"; + + src = fetchurl { + url = "mirror://pypi/a/${pname}/${name}.tar.gz"; + sha256 = "1mw5q20b80j55vbpcdfl824sbb1q15dhkfbczjnnv8733j4yg0x4"; + }; + + propagatedBuildInputs = [ logilab_common six lazy-object-proxy wrapt ]; + + postPatch = '' + cd astroid/tests + for i in $(ls unittest*); do mv -v $i test_$i; done + cd ../.. + rm -vf astroid/tests/test_unittest_inference.py + ''; + + checkPhase = '' + ${python.interpreter} -m unittest discover + ''; + + meta = with stdenv.lib; { + description = "A abstract syntax tree for Python with inference support"; + homepage = http://bitbucket.org/logilab/astroid; + license = licenses.lgpl2; + platform = platforms.all; + maintainers = with maintainers; [ nand0p ]; + }; + } diff --git a/pkgs/development/python-modules/pylint/default.nix b/pkgs/development/python-modules/pylint/default.nix new file mode 100644 index 000000000000..844d2e229547 --- /dev/null +++ b/pkgs/development/python-modules/pylint/default.nix @@ -0,0 +1,42 @@ +{ stdenv, fetchurl, buildPythonPackage, python, astroid, isort, + pytest, mccabe, configparser, backports_functools_lru_cache }: + + buildPythonPackage rec { + name = "${pname}-${version}"; + pname = "pylint"; + version = "1.6.5"; + + src = fetchurl { + url = "mirror://pypi/p/${pname}/${name}.tar.gz"; + sha256 = "06b78nl996949a7h01c4ycy8779hl5cm7vpxij5lm3npim59hwx6"; + }; + + buildInputs = [ pytest mccabe configparser backports_functools_lru_cache ]; + + propagatedBuildInputs = [ astroid isort ]; + + postPatch = '' + # Remove broken darwin tests + 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 + ''; + + checkPhase = '' + cd pylint/test + ${python.interpreter} -m unittest discover -p "*test*" + ''; + + postInstall = '' + mkdir -p $out/share/emacs/site-lisp + cp "elisp/"*.el $out/share/emacs/site-lisp/ + ''; + + meta = with stdenv.lib; { + homepage = http://www.logilab.org/project/pylint; + description = "A bug and style checker for Python"; + platform = platforms.all; + license = licenses.gpl1Plus; + maintainers = with maintainers; [ nand0p ]; + }; + } |