Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / gast / default.nix
blob32e4df0ae1976374f4e4363b477b9f077d725c64
1 { lib
2 , astunparse
3 , buildPythonPackage
4 , fetchFromGitHub
5 , pytestCheckHook
6 , pythonOlder
7 }:
9 buildPythonPackage rec {
10   pname = "gast";
11   version = "0.5.3";
12   format = "setuptools";
14   disabled = pythonOlder "3.7";
16   src = fetchFromGitHub {
17     owner = "serge-sans-paille";
18     repo = pname;
19     rev = version;
20     hash = "sha256-0y2bHT7YEfTvDxTm6yLl3GmnPUYEieoGEnwkzfA6mOg=";
21   };
23   nativeCheckInputs = [
24     astunparse
25     pytestCheckHook
26   ];
28   pythonImportsCheck = [
29     "gast"
30   ];
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   };