@@ -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+}