python311Packages.python-telegram: 0.18.0 -> 0.19.0
Diff: https://github.com/alexander-akhmetov/python-telegram/compare/refs/tags/0.18.0...0.19.0 Changelog: https://github.com/alexander-akhmetov/python-telegram/releases/tag/0.19.0
This commit is contained in:
@@ -3,24 +3,26 @@
|
||||
stdenv,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
setuptools-scm,
|
||||
setuptools,
|
||||
tdlib,
|
||||
telegram-text,
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-telegram";
|
||||
version = "0.18.0";
|
||||
format = "setuptools";
|
||||
disabled = pythonOlder "3.6";
|
||||
version = "0.19.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "alexander-akhmetov";
|
||||
repo = "python-telegram";
|
||||
rev = version;
|
||||
hash = "sha256-2Q0nUZ2TMVWznd05+fqYojkRn4xfFZJrlqb1PMuBsAY=";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-JnU59DZXpnaZXIY/apXQ2gBgiwT12rJIeVqzaP0l7Zk=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
@@ -28,12 +30,14 @@ buildPythonPackage rec {
|
||||
rm -fr telegram/lib
|
||||
|
||||
substituteInPlace telegram/tdjson.py \
|
||||
--replace "ctypes.util.find_library(\"tdjson\")" \
|
||||
--replace-fail "ctypes.util.find_library(\"tdjson\")" \
|
||||
"\"${tdlib}/lib/libtdjson${stdenv.hostPlatform.extensions.sharedLibrary}\""
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
setuptools
|
||||
build-inputs = [ setuptools ];
|
||||
|
||||
dependencies = [
|
||||
setuptools-scm
|
||||
telegram-text
|
||||
];
|
||||
|
||||
@@ -46,6 +50,7 @@ buildPythonPackage rec {
|
||||
meta = with lib; {
|
||||
description = "Python client for the Telegram's tdlib";
|
||||
homepage = "https://github.com/alexander-akhmetov/python-telegram";
|
||||
changelog = "https://github.com/alexander-akhmetov/python-telegram/releases/tag/${version}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ sikmir ];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user