From 72f051a97025f85dbbb6e6b6f74a8c4ea451e3f2 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Bernardy Date: Thu, 7 Jun 2018 13:29:27 +0200 Subject: [PATCH] python.packages.gast: init at 0.2.0 --- pkgs/development/python-modules/gast/default.nix | 16 ++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 18 insertions(+) create mode 100644 pkgs/development/python-modules/gast/default.nix diff --git a/pkgs/development/python-modules/gast/default.nix b/pkgs/development/python-modules/gast/default.nix new file mode 100644 index 000000000000..036bed9dd792 --- /dev/null +++ b/pkgs/development/python-modules/gast/default.nix @@ -0,0 +1,16 @@ +{ stdenv, fetchPypi, buildPythonPackage, astunparse }: + +buildPythonPackage rec { + pname = "gast"; + version = "0.2.0"; + src = fetchPypi { + inherit pname version; + sha256 = "0c296xm1vz9x4w4inmdl0k8mnc0i9arw94si2i7pglpc461r0s3h"; + }; + checkInputs = [ astunparse ] ; + meta = with stdenv.lib; { + description = "GAST provides a compatibility layer between the AST of various Python versions, as produced by ast.parse from the standard ast module."; + license = licenses.bsd3; + maintainers = with maintainers; [ jyp ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 7a0248a05b3b..fc0ebcdc2e6f 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -18173,6 +18173,8 @@ EOF astunparse = callPackage ../development/python-modules/astunparse { }; + gast = callPackage ../development/python-modules/gast { }; + }); in fix' (extends overrides packages)