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