Merge pull request #192861 from r-ryantm/auto-update/python310Packages.telethon
This commit is contained in:
commit
01188530fd
1 changed files with 30 additions and 9 deletions
|
@ -1,13 +1,26 @@
|
||||||
{ lib, buildPythonPackage, fetchPypi, openssl, rsa, pyaes, pythonOlder }:
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, openssl
|
||||||
|
, rsa
|
||||||
|
, pyaes
|
||||||
|
, pythonOlder
|
||||||
|
, setuptools
|
||||||
|
, pytest-asyncio
|
||||||
|
, pytestCheckHook
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "telethon";
|
pname = "telethon";
|
||||||
version = "1.25.0";
|
version = "1.25.1";
|
||||||
|
format = "pyproject";
|
||||||
|
disabled = pythonOlder "3.5";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit version;
|
owner = "LonamiWebs";
|
||||||
pname = "Telethon";
|
repo = "Telethon";
|
||||||
sha256 = "sha256-Z22XuSbm0w2+0x1sbmYRzeyfyCdZeFzqVcR3C3RhQpA=";
|
rev = "refs/tags/v${version}";
|
||||||
|
hash = "sha256-xmFoCUqYo600RH72KWG/aM7hKGiTYdCBsbPOFipxIzA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
|
@ -15,15 +28,23 @@ buildPythonPackage rec {
|
||||||
"ctypes.util.find_library('ssl')" "'${lib.getLib openssl}/lib/libssl.so'"
|
"ctypes.util.find_library('ssl')" "'${lib.getLib openssl}/lib/libssl.so'"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
setuptools
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
rsa
|
rsa
|
||||||
pyaes
|
pyaes
|
||||||
];
|
];
|
||||||
|
|
||||||
# No tests available
|
checkInputs = [
|
||||||
doCheck = false;
|
pytest-asyncio
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
disabled = pythonOlder "3.5";
|
pytestFlagsArray = [
|
||||||
|
"tests/telethon"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/LonamiWebs/Telethon";
|
homepage = "https://github.com/LonamiWebs/Telethon";
|
||||||
|
|
Loading…
Reference in a new issue