Merge pull request #134933 from Ma27/backport-mautrix-telegram
[21.05] mautrix telegram: 0.10.0 -> 0.10.1
This commit is contained in:
commit
b86db7692f
@ -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 = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user