at master 929 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 cargo, 6 rustPlatform, 7 rustc, 8}: 9 10buildPythonPackage rec { 11 pname = "zenoh"; 12 version = "1.4.0"; # nixpkgs-update: no auto update 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "eclipse-zenoh"; 17 repo = "zenoh-python"; 18 rev = version; 19 hash = "sha256-X9AUjuJYA8j41JVS+ZLRYcQUzSRoGwmkNIH0UK5+QoU="; 20 }; 21 22 cargoDeps = rustPlatform.fetchCargoVendor { 23 inherit src pname version; 24 hash = "sha256-Z6Wtor/aAdO1JUUafFEo9RdI7OXmsAD5MMtMUF6CZEg="; 25 }; 26 27 build-system = [ 28 cargo 29 rustPlatform.cargoSetupHook 30 rustPlatform.maturinBuildHook 31 rustc 32 ]; 33 34 pythonImportsCheck = [ 35 "zenoh" 36 ]; 37 38 meta = { 39 description = "Python API for zenoh"; 40 homepage = "https://github.com/eclipse-zenoh/zenoh-python"; 41 license = with lib.licenses; [ 42 asl20 43 epl20 44 ]; 45 maintainers = with lib.maintainers; [ markuskowa ]; 46 }; 47}