18 buildPythonPackage rec {
19 pname = "johnnycanencrypt";
23 disabled = pythonOlder "3.8";
25 src = fetchFromGitHub {
27 repo = "johnnycanencrypt";
29 hash = "sha256-tbHW3x+vwFz0nqFGWvgxjhw8XH6/YKz1uagU339SZyk=";
32 cargoDeps = rustPlatform.fetchCargoTarball {
34 name = "${pname}-${version}";
35 hash = "sha256-vDlMdzZgmaRkviEk8IjIN+Q5x95gnpQiW5c8fT+dats=";
38 build-system = with rustPlatform; [
46 ++ (with rustPlatform; [
54 ++ lib.optionals stdenv.hostPlatform.isLinux [ pcsclite ]
55 ++ lib.optionals stdenv.hostPlatform.isDarwin [
60 dependencies = [ httpx ];
69 rm -r johnnycanencrypt
72 pythonImportsCheck = [ "johnnycanencrypt" ];
75 description = "Python module for OpenPGP written in Rust";
76 homepage = "https://github.com/kushaldas/johnnycanencrypt";
77 changelog = "https://github.com/kushaldas/johnnycanencrypt/blob/v${version}/changelog.md";
78 license = licenses.lgpl3Plus;
79 maintainers = with maintainers; [ _0x4A6F ];