{ lib, fetchPypi, buildPythonPackage, pythonOlder, isPyPy , lazy-object-proxy, six, wrapt, typing, typed-ast , pytestrunner, pytest }: buildPythonPackage rec { pname = "astroid"; version = "2.0.1"; disabled = pythonOlder "3.4"; src = fetchPypi { inherit pname version; sha256 = "218e36cf8d98a42f16214e8670819ce307fa707d1dcf7f9af84c7aede1febc7f"; }; # From astroid/__pkginfo__.py propagatedBuildInputs = [ lazy-object-proxy six wrapt ] ++ lib.optional (pythonOlder "3.5") typing ++ lib.optional (pythonOlder "3.7" && !isPyPy) typed-ast; checkInputs = [ pytestrunner pytest ]; meta = with lib; { description = "A abstract syntax tree for Python with inference support"; homepage = https://bitbucket.org/logilab/astroid; license = licenses.lgpl2; platforms = platforms.all; maintainers = with maintainers; [ nand0p ]; }; }