Skip to content

Commit

Permalink
python3Packages.zenoh: init at 1.0.3 (NixOS#361227)
Browse files Browse the repository at this point in the history
  • Loading branch information
markuskowa authored Dec 10, 2024
2 parents 45135b3 + 906be16 commit dab510a
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
51 changes: 51 additions & 0 deletions pkgs/development/python-modules/zenoh/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
cargo,
rustPlatform,
rustc,
stdenv,
darwin,
}:

buildPythonPackage rec {
pname = "zenoh";
version = "1.0.3";
pyproject = true;

src = fetchFromGitHub {
owner = "eclipse-zenoh";
repo = "zenoh-python";
rev = version;
hash = "sha256-LQ6zu0yD2heprN2p6zO/ZC6uIsMlc1FyDuZ/dvOnVqU=";
};

cargoDeps = rustPlatform.fetchCargoVendor {
inherit src pname version;
hash = "sha256-6a2OSZLn1OYpe4tAv60uBhh/b+3QewPxVtQIDOnpk3A=";
};

build-system = [
cargo
rustPlatform.cargoSetupHook
rustPlatform.maturinBuildHook
rustc
];

buildInputs = lib.optional stdenv.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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18298,6 +18298,8 @@ self: super: with self; {
python3 = python;
})).py;

zenoh = callPackage ../development/python-modules/zenoh { };

zephyr-python-api = callPackage ../development/python-modules/zephyr-python-api { };

zeroc-ice = callPackage ../development/python-modules/zeroc-ice { };
Expand Down

0 comments on commit dab510a

Please sign in to comment.