2020-04-25 02:21:36 +01:00
|
|
|
{ lib, fetchPypi, buildPythonPackage,
|
|
|
|
setuptools_scm, toml, six, astroid, pytest
|
2019-02-26 21:45:04 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "asttokens";
|
2020-04-25 02:21:36 +01:00
|
|
|
version = "2.0.4";
|
2019-02-26 21:45:04 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-04-25 02:21:36 +01:00
|
|
|
sha256 = "0a2ixiz04aw4p0aivxh47k3fa9ql804l3y5iv5gcih9aizi5fbm4";
|
2019-02-26 21:45:04 +00:00
|
|
|
};
|
|
|
|
|
2020-04-25 02:21:36 +01:00
|
|
|
propagatedBuildInputs = [ setuptools_scm toml six astroid ];
|
2019-06-06 22:20:00 +01:00
|
|
|
|
2020-04-25 02:21:36 +01:00
|
|
|
checkInputs = [ pytest ];
|
2019-02-26 21:45:04 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/gristlabs/asttokens";
|
2019-02-26 21:45:04 +00:00
|
|
|
description = "Annotate Python AST trees with source text and token information";
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ leenaars ];
|
|
|
|
};
|
|
|
|
}
|