mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 00:24:18 +00:00
63 lines
1.3 KiB
Nix
63 lines
1.3 KiB
Nix
{ lib, stdenv, buildPythonApplication, fetchFromGitHub, pythonOlder,
|
|
attrs, aiohttp, appdirs, click, keyring, Logbook, peewee, janus,
|
|
prompt_toolkit, matrix-nio, dbus-python, pydbus, notify2, pygobject3,
|
|
|
|
pytest, faker, pytest-aiohttp, aioresponses,
|
|
|
|
enableDbusUi ? true
|
|
}:
|
|
|
|
buildPythonApplication rec {
|
|
pname = "pantalaimon";
|
|
version = "0.6.1";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
# pypi tarball miss tests
|
|
src = fetchFromGitHub {
|
|
owner = "matrix-org";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "0hn3731jh6xwyjayzdf41skhpdx002qs7n5l7ffh4dplhnv9vbxx";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
appdirs
|
|
attrs
|
|
click
|
|
janus
|
|
keyring
|
|
Logbook
|
|
matrix-nio
|
|
peewee
|
|
prompt_toolkit
|
|
] ++ lib.optional enableDbusUi [
|
|
dbus-python
|
|
notify2
|
|
pygobject3
|
|
pydbus
|
|
];
|
|
|
|
checkInputs = [
|
|
pytest
|
|
faker
|
|
pytest-aiohttp
|
|
aioresponses
|
|
];
|
|
|
|
# darwin has difficulty communicating with server, fails some integration tests
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
checkPhase = ''
|
|
pytest
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "An end-to-end encryption aware Matrix reverse proxy daemon.";
|
|
homepage = "https://github.com/matrix-org/pantalaimon";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ valodim ];
|
|
};
|
|
}
|