5 , enableSystemd ? lib.meta.availableOn stdenv.hostPlatform python3.pkgs.systemd
8 python3.pkgs.buildPythonPackage rec {
9 pname = "mautrix-facebook";
12 src = fetchFromGitHub {
16 hash = "sha256-8uleN7L3fgNqqRjva3kJU7fLPJZpO6b0J4z0RxZ9B64=";
19 propagatedBuildInputs = with python3.pkgs; [
35 ] ++ lib.optional enableSystemd systemd;
38 # Drop version limiting so that every dependency update doesn't break this package.
39 sed -i -e 's/,<.*//' requirements.txt
45 cat <<-END >$out/bin/mautrix-facebook
47 PYTHONPATH="$PYTHONPATH" exec ${python3}/bin/python -m mautrix_facebook "\$@"
49 chmod +x $out/bin/mautrix-facebook
53 $out/bin/mautrix-facebook --help
57 homepage = "https://github.com/mautrix/facebook";
58 changelog = "https://github.com/mautrix/facebook/releases/tag/v${version}";
59 description = "Matrix-Facebook Messenger puppeting bridge";
60 license = licenses.agpl3Plus;
61 maintainers = with maintainers; [ kevincox ];
62 mainProgram = "mautrix-facebook";