2019-06-16 19:59:06 +00:00
|
|
|
{ lib, fetchPypi, buildPythonPackage
|
2018-08-30 22:28:38 +00:00
|
|
|
, lazy-object-proxy, six, wrapt, enum34, singledispatch, backports_functools_lru_cache
|
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "astroid";
|
2019-04-16 17:15:34 +00:00
|
|
|
version = "1.6.6";
|
2018-08-30 22:28:38 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-04-16 17:15:34 +00:00
|
|
|
sha256 = "d25869fc7f44f1d9fb7d24fd7ea0639656f5355fc3089cd1f3d18c6ec6b124c7";
|
2018-08-30 22:28:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# From astroid/__pkginfo__.py
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
lazy-object-proxy
|
|
|
|
six
|
|
|
|
wrapt
|
|
|
|
enum34
|
|
|
|
singledispatch
|
|
|
|
backports_functools_lru_cache
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
# test_builtin_help is broken
|
2019-04-18 07:24:15 +00:00
|
|
|
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
|
2018-08-30 22:28:38 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "An abstract syntax tree for Python with inference support";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/PyCQA/astroid";
|
2018-08-30 22:28:38 +00:00
|
|
|
license = licenses.lgpl2;
|
|
|
|
platforms = platforms.all;
|
2021-05-14 14:00:41 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-08-30 22:28:38 +00:00
|
|
|
};
|
|
|
|
}
|