This repository has been archived on 2024-10-13. You can view files and clone it, but cannot push or open issues or pull requests.
nix-packages/python/tulir-telethon.nix

41 lines
859 B
Nix
Raw Normal View History

2022-09-26 10:39:55 +00:00
{
lib,
buildPythonPackage,
fetchPypi,
openssl,
rsa,
pyaes,
pythonOlder,
}:
buildPythonPackage rec {
pname = "tulir-telethon";
2022-11-07 18:29:56 +00:00
version = "1.26.0a10";
2022-09-26 10:39:55 +00:00
src = fetchPypi {
inherit pname version;
2022-11-07 18:29:56 +00:00
sha256 = "sha256-t/ZI+rsexzZK6pfG+fKglr5WLf2qH0mYH8UGe7qJ/8w=";
2022-09-26 10:39:55 +00:00
};
patchPhase = ''
substituteInPlace telethon/crypto/libssl.py --replace \
"ctypes.util.find_library('ssl')" "'${lib.getLib openssl}/lib/libssl.so'"
'';
propagatedBuildInputs = [
rsa
pyaes
];
# No tests available
doCheck = false;
disabled = pythonOlder "3.5";
meta = with lib; {
homepage = "https://github.com/LonamiWebs/Telethon";
description = "Full-featured Telegram client library for Python 3";
license = licenses.mit;
};
2022-09-30 08:17:21 +00:00
passthru.updateScript = [../scripts/update-python-libraries "python/tulir-telethon.nix"];
2022-09-26 10:39:55 +00:00
}