2021-07-24 12:14:16 +00:00
|
|
|
{ lib
|
|
|
|
, astunparse
|
2022-02-10 20:34:41 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2021-07-24 12:14:16 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "gast";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "0.5.3";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-07-24 12:14:16 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "serge-sans-paille";
|
2022-02-10 20:34:41 +00:00
|
|
|
repo = pname;
|
2021-07-24 12:14:16 +00:00
|
|
|
rev = version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-0y2bHT7YEfTvDxTm6yLl3GmnPUYEieoGEnwkzfA6mOg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2021-07-24 12:14:16 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-02-10 20:34:41 +00:00
|
|
|
astunparse
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"gast"
|
|
|
|
];
|
2021-07-24 12:14:16 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-02-10 20:34:41 +00:00
|
|
|
description = "Compatibility layer between the AST of various Python versions";
|
2021-07-24 12:14:16 +00:00
|
|
|
homepage = "https://github.com/serge-sans-paille/gast/";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
2021-07-24 12:14:16 +00:00
|
|
|
maintainers = with maintainers; [ jyp cpcloud ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|