python3Packages.ast-serialize: init at 0.3.0
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
cargo,
|
||||
rustPlatform,
|
||||
rustc,
|
||||
}:
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "ast-serialize";
|
||||
version = "0.3.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mypyc";
|
||||
repo = "ast_serialize";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-R5hNpbJjKKZDOKQCdGZQ+0iW5vdh5CzSgzORESh4bDU=";
|
||||
};
|
||||
|
||||
cargoDeps = rustPlatform.fetchCargoVendor {
|
||||
inherit (finalAttrs) pname version src;
|
||||
hash = "sha256-uhUMaUkaL57X8CVy6T9pCQa62IsOeKN/dhZTPVXSn14=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
cargo
|
||||
rustPlatform.cargoSetupHook
|
||||
rustPlatform.maturinBuildHook
|
||||
rustc
|
||||
];
|
||||
|
||||
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 ];
|
||||
};
|
||||
})
|
||||
@@ -1094,6 +1094,8 @@ self: super: with self; {
|
||||
|
||||
ast-grep-py = callPackage ../development/python-modules/ast-grep-py { };
|
||||
|
||||
ast-serialize = callPackage ../development/python-modules/ast-serialize { };
|
||||
|
||||
asterisk-mbox = callPackage ../development/python-modules/asterisk-mbox { };
|
||||
|
||||
asteroid-filterbanks = callPackage ../development/python-modules/asteroid-filterbanks { };
|
||||
|
||||
Reference in New Issue
Block a user