2018-07-24 01:08:05 +02:00
|
|
|
{ lib, fetchPypi, buildPythonPackage, pythonOlder, isPyPy
|
|
|
|
, lazy-object-proxy, six, wrapt, typing, typed-ast
|
|
|
|
, pytestrunner, pytest
|
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";
|
2018-07-22 12:04:36 +02:00
|
|
|
version = "2.0.1";
|
2017-03-03 03:05:54 +01:00
|
|
|
|
2018-07-24 01:08:05 +02:00
|
|
|
disabled = pythonOlder "3.4";
|
|
|
|
|
2017-06-06 11:32:19 +02:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-07-22 12:04:36 +02:00
|
|
|
sha256 = "218e36cf8d98a42f16214e8670819ce307fa707d1dcf7f9af84c7aede1febc7f";
|
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
|
|
|
|
propagatedBuildInputs = [ lazy-object-proxy six wrapt ]
|
|
|
|
++ lib.optional (pythonOlder "3.5") typing
|
|
|
|
++ lib.optional (pythonOlder "3.7" && !isPyPy) typed-ast;
|
2017-03-03 03:05:54 +01:00
|
|
|
|
2018-07-24 01:08:05 +02:00
|
|
|
checkInputs = [ pytestrunner pytest ];
|
2017-03-03 03:05:54 +01:00
|
|
|
|
2017-05-27 12:23:41 +02:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A abstract syntax tree for Python with inference support";
|
2017-11-10 22:13:27 +01:00
|
|
|
homepage = https://bitbucket.org/logilab/astroid;
|
2017-05-27 12:23:41 +02:00
|
|
|
license = licenses.lgpl2;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ nand0p ];
|
|
|
|
};
|
|
|
|
}
|