mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
47 lines
929 B
Nix
47 lines
929 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
cargo,
|
|
rustPlatform,
|
|
rustc,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "zenoh";
|
|
version = "1.9.0"; # nixpkgs-update: no auto update
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "eclipse-zenoh";
|
|
repo = "zenoh-python";
|
|
rev = version;
|
|
hash = "sha256-rKWbJti5bgwAfc8LpQFsU6KhhcWyWAwOX+SF1UAGRbk=";
|
|
};
|
|
|
|
cargoDeps = rustPlatform.fetchCargoVendor {
|
|
inherit src pname version;
|
|
hash = "sha256-g7Om2QvlbwVmB0wGcbuafUELh53IJ2uM+miHyzBKQQI=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|