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