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
1 changed files with 19 additions and 7 deletions

View File

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