Merge pull request #134933 from Ma27/backport-mautrix-telegram

[21.05] mautrix telegram: 0.10.0 -> 0.10.1
This commit is contained in:
Maximilian Bosch 2021-08-21 00:06:56 +02:00 committed by GitHub
commit b86db7692f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,30 +2,42 @@
, withE2BE ? true , withE2BE ? true
}: }:
with python3.pkgs;
let let
python = python3.override {
packageOverrides = self: super: {
mautrix = super.mautrix.overridePythonAttrs (oldAttrs: rec {
version = "0.10.4";
src = oldAttrs.src.override {
inherit version;
sha256 = "ffbc4e29eb56089539b408f8e4c12a5d5a5d11d7fe7d40f8c6279784c618b869";
};
});
};
};
# officially supported database drivers # officially supported database drivers
dbDrivers = [ dbDrivers = with python.pkgs; [
psycopg2 psycopg2
# sqlite driver is already shipped with python by default # sqlite driver is already shipped with python by default
]; ];
in buildPythonPackage rec { in with python.pkgs; buildPythonPackage rec {
pname = "mautrix-telegram"; pname = "mautrix-telegram";
version = "0.9.0"; version = "0.10.1";
disabled = pythonOlder "3.7"; disabled = python.pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "tulir"; owner = "tulir";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "1543ljjl3jg3ayid7ifi4bamqh4gq85pmlbs3m8i7phjbbm7g9dn"; sha256 = "sha256-1Dmc7WRlT2ivGkdrGDC1b44DE0ovQKfUR0gDiQE4h5c=";
}; };
patches = [ ./0001-Re-add-entrypoint.patch ./0002-Don-t-depend-on-pytest-runner.patch ]; patches = [ ./0001-Re-add-entrypoint.patch ./0002-Don-t-depend-on-pytest-runner.patch ];
postPatch = '' postPatch = ''
sed -i -e '/alembic>/d' requirements.txt sed -i -e '/alembic>/d' requirements.txt
substituteInPlace requirements.txt \
--replace "telethon>=1.22,<1.23" "telethon"
''; '';
propagatedBuildInputs = [ propagatedBuildInputs = [