python38Packages.proton-client: init at 0.7.0
This commit is contained in:
parent
08a0d4994a
commit
2a6622d704
2 changed files with 52 additions and 0 deletions
50
pkgs/development/python-modules/proton-client/default.nix
Normal file
50
pkgs/development/python-modules/proton-client/default.nix
Normal file
|
@ -0,0 +1,50 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
, bcrypt
|
||||
, pyopenssl
|
||||
, python-gnupg
|
||||
, requests
|
||||
, openssl
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "proton-client";
|
||||
version = "0.7.0";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ProtonMail";
|
||||
repo = "proton-python-client";
|
||||
rev = version;
|
||||
sha256 = "sha256-98tEL3DUYtx27JcI6pPFS2iDJXS8K3yyvCU9UVrg1EM=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
bcrypt
|
||||
pyopenssl
|
||||
python-gnupg
|
||||
requests
|
||||
];
|
||||
|
||||
buildInputs = [ openssl ];
|
||||
|
||||
# This patch is supposed to indicate where to load OpenSSL library,
|
||||
# but it is not working as intended.
|
||||
#patchPhase = ''
|
||||
# substituteInPlace proton/srp/_ctsrp.py --replace \
|
||||
# "ctypes.cdll.LoadLibrary('libssl.so.10')" "'${openssl.out}/lib/libssl.so'"
|
||||
#'';
|
||||
# Regarding the issue above, I'm disabling tests for now
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "proton" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python Proton client module";
|
||||
homepage = "https://github.com/ProtonMail/proton-python-client";
|
||||
license = licenses.gpl3Only;
|
||||
maintainers = with maintainers; [ wolfangaukang ];
|
||||
};
|
||||
}
|
|
@ -5935,6 +5935,8 @@ in {
|
|||
|
||||
protobuf3-to-dict = callPackage ../development/python-modules/protobuf3-to-dict { };
|
||||
|
||||
proton-client = callPackage ../development/python-modules/proton-client { };
|
||||
|
||||
protonup = callPackage ../development/python-modules/protonup { };
|
||||
|
||||
prov = callPackage ../development/python-modules/prov { };
|
||||
|
|
Loading…
Reference in a new issue