mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
51 lines
1 KiB
Nix
51 lines
1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
cargo,
|
|
rustPlatform,
|
|
rustc,
|
|
stdenv,
|
|
darwin,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "zenoh";
|
|
version = "1.2.1"; # nixpkgs-update: no auto update
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "eclipse-zenoh";
|
|
repo = "zenoh-python";
|
|
rev = version;
|
|
hash = "sha256-AIsIjMcT9g0mTAgxOL/shBEjpeuOm/7Wn4EOSyYbShE=";
|
|
};
|
|
|
|
cargoDeps = rustPlatform.fetchCargoVendor {
|
|
inherit src pname version;
|
|
hash = "sha256-Y8fg/vFL7kLoARpp0BmDpQva9zNEEOWOHQk3GjeAoLk=";
|
|
};
|
|
|
|
build-system = [
|
|
cargo
|
|
rustPlatform.cargoSetupHook
|
|
rustPlatform.maturinBuildHook
|
|
rustc
|
|
];
|
|
|
|
buildInputs = lib.optional stdenv.hostPlatform.isDarwin darwin.apple_sdk.frameworks.Security;
|
|
|
|
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 ];
|
|
};
|
|
}
|