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.0.4";
9
10 disabled = pythonOlder "3.4";
11
12 src = fetchPypi {
13 inherit pname version;
14 sha256 = "c7013d119ec95eb626f7a2011f0b63d0c9a095df9ad06d8507b37084eada1a8d";
15 };
16
17 # From astroid/__pkginfo__.py
18 propagatedBuildInputs = [ lazy-object-proxy six wrapt ]
19 ++ lib.optional (pythonOlder "3.5") typing
20 ++ lib.optional (pythonOlder "3.7" && !isPyPy) typed-ast;
21
22 checkInputs = [ pytestrunner pytest ];
23
24 meta = with lib; {
25 description = "A abstract syntax tree for Python with inference support";
26 homepage = https://bitbucket.org/logilab/astroid;
27 license = licenses.lgpl2;
28 platforms = platforms.all;
29 maintainers = with maintainers; [ nand0p ];
30 };
31}