python3Packages.betterproto-rust-codec: init at 0.1.1

This commit is contained in:
Sarah Clark
2025-06-23 14:35:32 -07:00
parent 64deeffc08
commit e2e8612272
2 changed files with 51 additions and 0 deletions
@@ -0,0 +1,49 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build
cargo,
rustc,
rustPlatform,
}:
buildPythonPackage rec {
pname = "betterproto-rust-codec";
version = "0.1.1";
pyproject = true;
src = fetchFromGitHub {
owner = "124C41p";
repo = "betterproto-rust-codec";
tag = "v${version}";
hash = "sha256-Q8oCk/VVe4Dcw6Z5PBFJBKRlsHgi6Jn+FWDqLH8BgYc=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit pname version src;
hash = "sha256-zYXE55o1/Tt6XJahV6WcGANPM/9xk6uYwQLazkIJj7A=";
};
build-system = [
rustPlatform.maturinBuildHook
];
nativeBuildInputs = [
cargo
rustPlatform.cargoSetupHook
rustc
];
pythonImportsCheck = [
"betterproto_rust_codec"
];
meta = {
description = "Converter between betterproto messages and the Protobuf wire format";
homepage = "https://github.com/124C41p/betterproto-rust-codec/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ sarahec ];
};
}
+2
View File
@@ -1806,6 +1806,8 @@ self: super: with self; {
betterproto = callPackage ../development/python-modules/betterproto { };
betterproto-rust-codec = callPackage ../development/python-modules/betterproto-rust-codec { };
bezier = callPackage ../development/python-modules/bezier { };
beziers = callPackage ../development/python-modules/beziers { };