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