1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 rustPlatform, 6 cargo, 7}: 8 9buildPythonPackage rec { 10 pname = "pysequoia"; 11 version = "0.1.29"; 12 format = "pyproject"; 13 14 src = fetchPypi { 15 inherit pname version; 16 hash = "sha256-PWzXXBAKrVZaFtZCYOyMHX5DIickqN9eR6DYhDNBoJo="; 17 }; 18 19 cargoDeps = rustPlatform.fetchCargoVendor { 20 inherit pname version src; 21 hash = "sha256-sZTbPlfkZLWcRmdOWLBw8k0pIukAjQ53C8Zs9gLEW+I="; 22 }; 23 24 nativeBuildInputs = [ 25 rustPlatform.bindgenHook 26 rustPlatform.cargoSetupHook 27 rustPlatform.maturinBuildHook 28 cargo 29 ]; 30 31 pythonImportsCheck = [ "pysequoia" ]; 32 33 meta = { 34 description = "This library provides OpenPGP facilities in Python through the Sequoia PGP library"; 35 downloadPage = "https://github.com/wiktor-k/pysequoia"; 36 homepage = "https://github.com/wiktor-k/pysequoia"; 37 license = lib.licenses.asl20; 38 maintainers = with lib.maintainers; [ doronbehar ]; 39 }; 40}