diff --git a/pkgs/development/python-modules/asttokens/default.nix b/pkgs/development/python-modules/asttokens/default.nix new file mode 100644 index 00000000000..3aba3a37c9e --- /dev/null +++ b/pkgs/development/python-modules/asttokens/default.nix @@ -0,0 +1,25 @@ +{ lib, fetchPypi, buildPythonPackage, astroid, six, coverage +, lazy-object-proxy, nose, wrapt +}: + +buildPythonPackage rec { + pname = "asttokens"; + version = "1.1.13"; + + src = fetchPypi { + inherit pname version; + sha256 = "1vd4djlxmgznz84gzakkv45avnrcpgl1kir92l1pxyp0z5c0dh2m"; + }; + + propagatedBuildInputs = [ lazy-object-proxy six wrapt astroid ]; + + checkInputs = [ coverage nose ]; + + 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 2879cf8432a..bb188c5c764 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -194,6 +194,8 @@ in { astroquery = callPackage ../development/python-modules/astroquery { }; + asttokens = callPackage ../development/python-modules/asttokens { }; + atom = callPackage ../development/python-modules/atom { }; augeas = callPackage ../development/python-modules/augeas {