1{ lib, fetchPypi, buildPythonPackage
2, lazy-object-proxy, six, wrapt, enum34, singledispatch, backports_functools_lru_cache
3, pytest
4}:
5
6buildPythonPackage rec {
7 pname = "astroid";
8 version = "1.6.6";
9
10 src = fetchPypi {
11 inherit pname version;
12 sha256 = "d25869fc7f44f1d9fb7d24fd7ea0639656f5355fc3089cd1f3d18c6ec6b124c7";
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 and not test_namespace_and_file_mismatch and not test_namespace_package_pth_support and not test_nested_namespace_import" 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; [ ];
38 };
39}