Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 rustPlatform, 6 cargo, 7}: 8 9buildPythonPackage rec { 10 pname = "pysequoia"; 11 version = "0.1.28"; 12 format = "pyproject"; 13 14 src = fetchPypi { 15 inherit pname version; 16 hash = "sha256-ixTszL2IN50SDYTDZqzlMI1nY6yNkEUnK5VxCoAG0jk="; 17 }; 18 19 cargoDeps = rustPlatform.fetchCargoVendor { 20 inherit pname version src; 21 hash = "sha256-cq55j3wNcV8CRbnqZPV8zrRzvUud5RXJDX1oh7WZoiU="; 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}