git.iko.soy/typeable/nixpkgs
on master help sign in
python2Packages.astroid: init at 1.6.5
commit4f09e0584906a6792128330a9b44bfe6e729b94c authorBen Wolsieffer <benwolsieffer@gmail.com> dateThu 30 Aug 2018, 18:28 (8 years ago) parent511d651
3 files changed+43−3
pkgs/development/python-modules/astroid/1.6.nix+39 pkgs/development/python-modules/astroid/default.nix+2−2 pkgs/top-level/python-packages.nix+2−1
pkgs/development/python-modules/astroid/1.6.nixnew file+39
@@ -0,0 +1,39 @@
1+{ lib, fetchPypi, buildPythonPackage, pythonOlder, isPyPy
2+, lazy-object-proxy, six, wrapt, enum34, singledispatch, backports_functools_lru_cache
3+, pytest
4+}:
5+
6+buildPythonPackage rec {
7+ pname = "astroid";
8+ version = "1.6.5";
9+
10+ src = fetchPypi {
11+ inherit pname version;
12+ sha256 = "0fir4b67sm7shcacah9n61pvq313m523jb4q80sycrh3p8nmi6zw";
13+ };
14+
15+ # From astroid/__pkginfo__.py
16+ propagatedBuildInputs = [
17+ lazy-object-proxy
18+ six
19+ wrapt
20+ enum34
21+ singledispatch
22+ backports_functools_lru_cache
23+ ];
24+
25+ checkInputs = [ pytest ];
26+
27+ checkPhase = ''
28+ # test_builtin_help is broken
29+ pytest -k "not test_builtin_help" astroid
30+ '';
31+
32+ meta = with lib; {
33+ description = "An abstract syntax tree for Python with inference support";
34+ homepage = https://github.com/PyCQA/astroid;
35+ license = licenses.lgpl2;
36+ platforms = platforms.all;
37+ maintainers = with maintainers; [ nand0p ];
38+ };
39+}
pkgs/development/python-modules/astroid/default.nix+2−2
@@ -22,8 +22,8 @@ buildPythonPackage rec {
2222 checkInputs = [ pytestrunner pytest ];
2323
2424 meta = with lib; {
25− description = "A abstract syntax tree for Python with inference support";
26− homepage = https://bitbucket.org/logilab/astroid;
25+ description = "An abstract syntax tree for Python with inference support";
26+ homepage = https://github.com/PyCQA/astroid;
2727 license = licenses.lgpl2;
2828 platforms = platforms.all;
2929 maintainers = with maintainers; [ nand0p ];
pkgs/top-level/python-packages.nix+2−1
@@ -736,7 +736,8 @@ in {
736736 # argparse is part of stdlib in 2.7 and 3.2+
737737 argparse = null;
738738
739− astroid = callPackage ../development/python-modules/astroid { };
739+ astroid = if isPy3k then callPackage ../development/python-modules/astroid { }
740+ else callPackage ../development/python-modules/astroid/1.6.nix { };
740741
741742 attrdict = callPackage ../development/python-modules/attrdict { };
742743