2018-07-24 00:08:05 +01:00
|
|
|
{ lib, fetchPypi, buildPythonPackage, pythonOlder, isPyPy
|
|
|
|
, lazy-object-proxy, six, wrapt, typing, typed-ast
|
|
|
|
, pytestrunner, pytest
|
2017-05-27 11:23:41 +01:00
|
|
|
}:
|
2017-03-03 02:05:54 +00:00
|
|
|
|
2017-05-27 11:23:41 +01:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "astroid";
|
2018-08-13 08:21:59 +01:00
|
|
|
version = "2.0.4";
|
2017-03-03 02:05:54 +00:00
|
|
|
|
2018-07-24 00:08:05 +01:00
|
|
|
disabled = pythonOlder "3.4";
|
|
|
|
|
2017-06-06 10:32:19 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-08-13 08:21:59 +01:00
|
|
|
sha256 = "c7013d119ec95eb626f7a2011f0b63d0c9a095df9ad06d8507b37084eada1a8d";
|
2017-05-27 11:23:41 +01:00
|
|
|
};
|
2017-03-03 02:05:54 +00:00
|
|
|
|
2018-07-24 00:08:05 +01: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 02:05:54 +00:00
|
|
|
|
2018-07-24 00:08:05 +01:00
|
|
|
checkInputs = [ pytestrunner pytest ];
|
2017-03-03 02:05:54 +00:00
|
|
|
|
2017-05-27 11:23:41 +01:00
|
|
|
meta = with lib; {
|
2018-08-30 23:28:38 +01:00
|
|
|
description = "An abstract syntax tree for Python with inference support";
|
|
|
|
homepage = https://github.com/PyCQA/astroid;
|
2017-05-27 11:23:41 +01:00
|
|
|
license = licenses.lgpl2;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ nand0p ];
|
|
|
|
};
|
|
|
|
}
|