mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
d7f74f982f
mautrix-telegram: 0.10.1 -> 0.10.2, mautrix-signal: unstable-2021-08-12 -> unstable-2021-11-12, python3Packages.mautrix: 0.10.11 -> 0.11.3
55 lines
1.3 KiB
Nix
55 lines
1.3 KiB
Nix
{ lib, python3, fetchFromGitHub }:
|
|
|
|
python3.pkgs.buildPythonPackage rec {
|
|
pname = "mautrix-signal";
|
|
version = "unstable-2021-11-12";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mautrix";
|
|
repo = "signal";
|
|
rev = "2e57810e964c1701df2e69273c2f8cebbe021464";
|
|
sha256 = "sha256-xgn01nbY3LR4G1Yk2MgUhq116/wEhG+5vLH6HKqZE+8=";
|
|
};
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
CommonMark
|
|
aiohttp
|
|
asyncpg
|
|
attrs
|
|
mautrix
|
|
phonenumbers
|
|
pillow
|
|
prometheus-client
|
|
pycryptodome
|
|
python-olm
|
|
python_magic
|
|
qrcode
|
|
ruamel-yaml
|
|
unpaddedbase64
|
|
yarl
|
|
];
|
|
|
|
doCheck = false;
|
|
|
|
postInstall = ''
|
|
mkdir -p $out/bin
|
|
|
|
# Make a little wrapper for running mautrix-signal with its dependencies
|
|
echo "$mautrixSignalScript" > $out/bin/mautrix-signal
|
|
echo "#!/bin/sh
|
|
exec python -m mautrix_signal \"\$@\"
|
|
" > $out/bin/mautrix-signal
|
|
chmod +x $out/bin/mautrix-signal
|
|
wrapProgram $out/bin/mautrix-signal \
|
|
--set PATH ${python3}/bin \
|
|
--set PYTHONPATH "$PYTHONPATH"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/mautrix/signal";
|
|
description = "A Matrix-Signal puppeting bridge";
|
|
license = licenses.agpl3Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ expipiplus1 ];
|
|
};
|
|
}
|