mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 14:11:36 +00:00
56 lines
1.3 KiB
Nix
56 lines
1.3 KiB
Nix
{ lib, python3, fetchFromGitHub }:
|
|
|
|
python3.pkgs.buildPythonPackage rec {
|
|
pname = "mautrix-signal";
|
|
version = "unstable-2021-08-12";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tulir";
|
|
repo = "mautrix-signal";
|
|
rev = "a592baaaa6c9ab7ec29edc84f069b9e9e2fc1b03";
|
|
sha256 = "0rvidf4ah23x8m7k7hbkwm2xrs838wnli99gh99b5hr6fqmacbwl";
|
|
};
|
|
|
|
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/tulir/mautrix-signal";
|
|
description = "A Matrix-Signal puppeting bridge";
|
|
license = licenses.agpl3Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ expipiplus1 ];
|
|
};
|
|
}
|