summary refs log tree commit diff
path: root/pkgs/development/python-modules/gast/default.nix
blob: f374378d9865cc054328abbfc8551a7a55b7f51d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ lib
, fetchFromGitHub
, buildPythonPackage
, astunparse
}:

buildPythonPackage rec {
  pname = "gast";
  version = "0.5.1";

  src = fetchFromGitHub {
    owner = "serge-sans-paille";
    repo = "gast";
    rev = version;
    sha256 = "1gph45frnj47lfr6idiyxrb3gk7vzc9rni9cijmcyz10dyx5kgwa";
  };

  checkInputs = [ astunparse ];

  meta = with lib; {
    description = "GAST provides a compatibility layer between the AST of various Python versions, as produced by ast.parse from the standard ast module.";
    homepage = "https://github.com/serge-sans-paille/gast/";
    license = licenses.bsd3;
    maintainers = with maintainers; [ jyp cpcloud ];
  };
}