mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
49 lines
1.1 KiB
Nix
49 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
cargo,
|
|
fetchPypi,
|
|
nix-update-script,
|
|
rustPlatform,
|
|
rustc,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "aliyun-log-fastpb";
|
|
version = "0.3.0";
|
|
pyproject = true;
|
|
|
|
__structuredAttrs = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "aliyun_log_fastpb";
|
|
inherit (finalAttrs) version;
|
|
hash = "sha256-dG4/tVx+brlxXoUqdcrFck6Zh3jAmtF+Aiso63axp0E=";
|
|
};
|
|
|
|
cargoDeps = rustPlatform.fetchCargoVendor {
|
|
inherit (finalAttrs) pname version src;
|
|
hash = "sha256-WPjJalEd/3jrx8pFP/RbHqQqMuloemTLeVjXjpOoJsQ=";
|
|
};
|
|
|
|
build-system = [
|
|
cargo
|
|
rustPlatform.cargoSetupHook
|
|
rustPlatform.maturinBuildHook
|
|
rustc
|
|
];
|
|
|
|
# Missing dependency logs_pb2
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "aliyun_log_fastpb" ];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Fast protobuf serialization for Aliyun Log using PyO3 and quick-protobuf";
|
|
homepage = "https://pypi.org/project/aliyun-log-fastpb";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
})
|