1{ lib, fetchPypi, buildPythonPackage,
2 setuptools_scm, toml, six, astroid, pytest
3}:
4
5buildPythonPackage rec {
6 pname = "asttokens";
7 version = "2.0.4";
8
9 src = fetchPypi {
10 inherit pname version;
11 sha256 = "0a2ixiz04aw4p0aivxh47k3fa9ql804l3y5iv5gcih9aizi5fbm4";
12 };
13
14 propagatedBuildInputs = [ setuptools_scm toml six astroid ];
15
16 checkInputs = [ pytest ];
17
18 meta = with lib; {
19 homepage = "https://github.com/gristlabs/asttokens";
20 description = "Annotate Python AST trees with source text and token information";
21 license = licenses.asl20;
22 platforms = platforms.all;
23 maintainers = with maintainers; [ leenaars ];
24 };
25}