1{ lib, fetchPypi, buildPythonPackage, pythonOlder, isPyPy
2, lazy-object-proxy, six, wrapt, typing, typed-ast
3, pytestrunner, pytest
4}:
5
6buildPythonPackage rec {
7 pname = "astroid";
8 version = "2.2.5";
9
10 disabled = pythonOlder "3.4";
11
12 src = fetchPypi {
13 inherit pname version;
14 sha256 = "1x5c8fiqa18frwwfdsw41lpqsyff3w4lxvjx9d5ccs4zfkhy2q35";
15 };
16
17 # From astroid/__pkginfo__.py
18 propagatedBuildInputs = [ lazy-object-proxy six wrapt ]
19 ++ lib.optional (pythonOlder "3.5") typing
20 ++ lib.optional (!isPyPy) typed-ast;
21
22 checkInputs = [ pytestrunner pytest ];
23
24 meta = with lib; {
25 description = "An abstract syntax tree for Python with inference support";
26 homepage = https://github.com/PyCQA/astroid;
27 license = licenses.lgpl2;
28 platforms = platforms.all;
29 maintainers = with maintainers; [ nand0p ];
30 };
31}