Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

50 lines
1019 B
Nix

{
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 ];
};
}