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