31 lines
866 B
Nix
31 lines
866 B
Nix
{ lib, fetchPypi, buildPythonPackage, pythonOlder, isPyPy
|
|
, lazy-object-proxy, six, wrapt, typing, typed-ast
|
|
, pytestrunner, pytest
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "astroid";
|
|
version = "2.1.0";
|
|
|
|
disabled = pythonOlder "3.4";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "08hz675knh4294bancdapql392fmbjyimhbyrmfkz1ka7l035c1m";
|
|
};
|
|
|
|
# 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 = "An abstract syntax tree for Python with inference support";
|
|
homepage = https://github.com/PyCQA/astroid;
|
|
license = licenses.lgpl2;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ nand0p ];
|
|
};
|
|
}
|