diff options
author | Ben Wolsieffer <benwolsieffer@gmail.com> | 2018-08-30 18:28:38 -0400 |
---|---|---|
committer | Ben Wolsieffer <benwolsieffer@gmail.com> | 2018-10-11 18:15:15 -0400 |
commit | 4f09e0584906a6792128330a9b44bfe6e729b94c (patch) | |
tree | 404918cecb4b8f9ef11427966c3772efabf982cc /pkgs | |
parent | 511d651e583c37df146d5fe8af3477334c3e174f (diff) | |
download | nixlib-4f09e0584906a6792128330a9b44bfe6e729b94c.tar nixlib-4f09e0584906a6792128330a9b44bfe6e729b94c.tar.gz nixlib-4f09e0584906a6792128330a9b44bfe6e729b94c.tar.bz2 nixlib-4f09e0584906a6792128330a9b44bfe6e729b94c.tar.lz nixlib-4f09e0584906a6792128330a9b44bfe6e729b94c.tar.xz nixlib-4f09e0584906a6792128330a9b44bfe6e729b94c.tar.zst nixlib-4f09e0584906a6792128330a9b44bfe6e729b94c.zip |
python2Packages.astroid: init at 1.6.5
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/astroid/1.6.nix | 39 | ||||
-rw-r--r-- | pkgs/development/python-modules/astroid/default.nix | 4 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 3 |
3 files changed, 43 insertions, 3 deletions
diff --git a/pkgs/development/python-modules/astroid/1.6.nix b/pkgs/development/python-modules/astroid/1.6.nix new file mode 100644 index 000000000000..ca26da5a3737 --- /dev/null +++ b/pkgs/development/python-modules/astroid/1.6.nix @@ -0,0 +1,39 @@ +{ lib, fetchPypi, buildPythonPackage, pythonOlder, isPyPy +, lazy-object-proxy, six, wrapt, enum34, singledispatch, backports_functools_lru_cache +, pytest +}: + +buildPythonPackage rec { + pname = "astroid"; + version = "1.6.5"; + + src = fetchPypi { + inherit pname version; + sha256 = "0fir4b67sm7shcacah9n61pvq313m523jb4q80sycrh3p8nmi6zw"; + }; + + # From astroid/__pkginfo__.py + propagatedBuildInputs = [ + lazy-object-proxy + six + wrapt + enum34 + singledispatch + backports_functools_lru_cache + ]; + + checkInputs = [ pytest ]; + + checkPhase = '' + # test_builtin_help is broken + pytest -k "not test_builtin_help" astroid + ''; + + meta = with lib; { + description = "An abstract syntax tree for Python with inference support"; + homepage = https://github.com/PyCQA/astroid; + license = licenses.lgpl2; + platforms = platforms.all; + maintainers = with maintainers; [ nand0p ]; + }; +} diff --git a/pkgs/development/python-modules/astroid/default.nix b/pkgs/development/python-modules/astroid/default.nix index ccf6f4055269..d773c08e189a 100644 --- a/pkgs/development/python-modules/astroid/default.nix +++ b/pkgs/development/python-modules/astroid/default.nix @@ -22,8 +22,8 @@ buildPythonPackage rec { checkInputs = [ pytestrunner pytest ]; meta = with lib; { - description = "A abstract syntax tree for Python with inference support"; - homepage = https://bitbucket.org/logilab/astroid; + description = "An abstract syntax tree for Python with inference support"; + homepage = https://github.com/PyCQA/astroid; license = licenses.lgpl2; platforms = platforms.all; maintainers = with maintainers; [ nand0p ]; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 28ba36f1ccba..11aa73a04bf8 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -736,7 +736,8 @@ in { # argparse is part of stdlib in 2.7 and 3.2+ argparse = null; - astroid = callPackage ../development/python-modules/astroid { }; + astroid = if isPy3k then callPackage ../development/python-modules/astroid { } + else callPackage ../development/python-modules/astroid/1.6.nix { }; attrdict = callPackage ../development/python-modules/attrdict { }; |