2021-02-12 14:42:25 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
, isPyPy
|
|
|
|
, lazy-object-proxy
|
|
|
|
, wrapt
|
|
|
|
, typed-ast
|
|
|
|
, pytestCheckHook
|
2017-05-27 10:23:41 +00:00
|
|
|
}:
|
2017-03-03 02:05:54 +00:00
|
|
|
|
2017-05-27 10:23:41 +00:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "astroid";
|
2021-02-12 14:42:25 +00:00
|
|
|
version = "2.5";
|
2017-03-03 02:05:54 +00:00
|
|
|
|
2021-02-12 14:42:25 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2018-07-23 23:08:05 +00:00
|
|
|
|
2017-06-06 09:32:19 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-12 14:42:25 +00:00
|
|
|
sha256 = "03dzhjrsc5d2whyjngfrwvxn42058k0cjjr85x2wqzai8psr475k";
|
2017-05-27 10:23:41 +00:00
|
|
|
};
|
2017-03-03 02:05:54 +00:00
|
|
|
|
2018-07-23 23:08:05 +00:00
|
|
|
# From astroid/__pkginfo__.py
|
2021-02-12 14:42:25 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
lazy-object-proxy
|
|
|
|
wrapt
|
|
|
|
] ++ lib.optional (!isPyPy && pythonOlder "3.8") typed-ast;
|
2017-03-03 02:05:54 +00:00
|
|
|
|
2021-02-12 14:42:25 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2017-03-03 02:05:54 +00:00
|
|
|
|
2017-05-27 10:23:41 +00:00
|
|
|
meta = with lib; {
|
2018-08-30 22:28:38 +00:00
|
|
|
description = "An abstract syntax tree for Python with inference support";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/PyCQA/astroid";
|
2017-05-27 10:23:41 +00:00
|
|
|
license = licenses.lgpl2;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ nand0p ];
|
|
|
|
};
|
|
|
|
}
|