nixpkgs-suyu/pkgs/development/python-modules/gast/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
743 B
Nix
Raw Normal View History

{ lib
, astunparse
2022-01-15 13:52:32 +01:00
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
2018-06-07 13:29:27 +02:00
buildPythonPackage rec {
pname = "gast";
2022-01-15 13:52:32 +01:00
version = "0.5.3";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "serge-sans-paille";
2022-01-15 13:52:32 +01:00
repo = pname;
rev = version;
2022-01-15 13:52:32 +01:00
sha256 = "sha256-0y2bHT7YEfTvDxTm6yLl3GmnPUYEieoGEnwkzfA6mOg=";
2018-06-07 13:29:27 +02:00
};
2022-01-15 13:52:32 +01:00
checkInputs = [
astunparse
pytestCheckHook
];
pythonImportsCheck = [
"gast"
];
meta = with lib; {
2022-01-15 13:52:32 +01:00
description = "Compatibility layer between the AST of various Python versions";
homepage = "https://github.com/serge-sans-paille/gast/";
2018-06-07 13:29:27 +02:00
license = licenses.bsd3;
maintainers = with maintainers; [ jyp cpcloud ];
2018-06-07 13:29:27 +02:00
};
}