blob: 3b47ae8a1508203fd881a876b5bb500ab2a3b73d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
rustPlatform,
}:
buildPythonPackage (finalAttrs: {
pname = "ast-serialize";
version = "0.6.0";
pyproject = true;
src = fetchFromGitHub {
owner = "mypyc";
repo = "ast_serialize";
tag = "v${finalAttrs.version}";
hash = "sha256-7MNtry/GDUpjuh/rMB+R4wAQpPAG/yLNGqH4tEyK7tw=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit (finalAttrs) pname version src;
hash = "sha256-iw1qkQoagmS+8e9znEEo4EZocu+ECL4c+egBY2TOrk0=";
};
build-system = [
rustPlatform.cargoSetupHook
rustPlatform.maturinBuildHook
];
pythonImportsCheck = [
"ast_serialize"
];
meta = {
description = "Fast Python parser that generates a serialized AST";
homepage = "https://github.com/mypyc/ast_serialize";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ hexa ];
};
})
|