1{
2 lib,
3 astunparse,
4 buildPythonPackage,
5 fetchFromGitHub,
6 pytestCheckHook,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "gast";
12 version = "0.5.3";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "serge-sans-paille";
19 repo = pname;
20 rev = version;
21 hash = "sha256-0y2bHT7YEfTvDxTm6yLl3GmnPUYEieoGEnwkzfA6mOg=";
22 };
23
24 nativeCheckInputs = [
25 astunparse
26 pytestCheckHook
27 ];
28
29 pythonImportsCheck = [ "gast" ];
30
31 meta = with lib; {
32 description = "Compatibility layer between the AST of various Python versions";
33 homepage = "https://github.com/serge-sans-paille/gast/";
34 license = licenses.bsd3;
35 maintainers = with maintainers; [
36 jyp
37 cpcloud
38 ];
39 };
40}