1{ 2 lib, 3 rustPlatform, 4 fetchPypi, 5 buildPythonPackage, 6}: 7 8buildPythonPackage rec { 9 pname = "ipv8-rust-tunnels"; 10 version = "0.1.34"; 11 pyproject = true; 12 13 src = fetchPypi { 14 inherit version; 15 pname = "ipv8_rust_tunnels"; 16 hash = "sha256-YXIfAXwcbWGq/CSMrTslpbkmj8AryzsinWK8kAWF90k="; 17 }; 18 19 cargoDeps = rustPlatform.fetchCargoVendor { 20 inherit pname version src; 21 hash = "sha256-C2LLiEpD0Gk39XSuwqQJ/l2olFL2HSktdZCJp5WG0pk="; 22 }; 23 24 nativeBuildInputs = with rustPlatform; [ 25 cargoSetupHook 26 maturinBuildHook 27 ]; 28 29 meta = with lib; { 30 description = "A set of performance enhancements to the TunnelCommunity, the anonymization layer used in IPv8 and Tribler"; 31 homepage = "https://github.com/Tribler/ipv8-rust-tunnels"; 32 license = licenses.lgpl3Only; 33 maintainers = with maintainers; [ mlaradji ]; 34 }; 35}