15 buildPythonPackage rec {
16 pname = "proton-client";
18 format = "setuptools";
19 disabled = pythonOlder "3.7";
21 src = fetchFromGitHub {
23 repo = "proton-python-client";
25 hash = "sha256-mhPq9O/LCu3+E1jKlaJmrI8dxbA9BIwlc34qGwoxi5g=";
28 propagatedBuildInputs = [
35 buildInputs = [ openssl ];
38 # Patches library by fixing the openssl path
40 src = ./0001-OpenSSL-path-fix.patch;
41 openssl = openssl.out;
42 ext = stdenv.hostPlatform.extensions.sharedLibrary;
46 nativeCheckInputs = [ pytestCheckHook ];
49 #ValueError: Invalid modulus
50 "test_modulus_verification"
53 pythonImportsCheck = [ "proton" ];
56 description = "Python Proton client module";
57 homepage = "https://github.com/ProtonMail/proton-python-client";
58 license = licenses.gpl3Only;
59 maintainers = with maintainers; [ wolfangaukang ];
60 platforms = platforms.linux;