{ lib, buildPythonPackage, fetchFromGitHub, cargo, rustPlatform, rustc, }: buildPythonPackage rec { pname = "zenoh"; version = "1.6.2"; # nixpkgs-update: no auto update pyproject = true; src = fetchFromGitHub { owner = "eclipse-zenoh"; repo = "zenoh-python"; rev = version; hash = "sha256-GGqZGtHSCaPeO6wFFBxPjdjhsIdcgI1RJ4mZbGq4uzc="; }; cargoDeps = rustPlatform.fetchCargoVendor { inherit src pname version; hash = "sha256-2Hieow0+GzcNQmvqsJd+5bpE9RWUDbaBR9jah+O4GtI="; }; build-system = [ cargo rustPlatform.cargoSetupHook rustPlatform.maturinBuildHook rustc ]; pythonImportsCheck = [ "zenoh" ]; meta = { description = "Python API for zenoh"; homepage = "https://github.com/eclipse-zenoh/zenoh-python"; license = with lib.licenses; [ asl20 epl20 ]; maintainers = with lib.maintainers; [ markuskowa ]; }; }