nixpkgs/pkgs/development/python-modules/asttokens/default.nix

26 lines
654 B
Nix
Raw Normal View History

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