2020-03-02 12:00:00 +00:00
|
|
|
{ lib, stdenv, buildPythonApplication, fetchFromGitHub, pythonOlder,
|
2023-02-19 17:16:51 +00:00
|
|
|
attrs, aiohttp, appdirs, click, keyring, logbook, peewee, janus,
|
2021-07-22 15:02:31 +00:00
|
|
|
prompt-toolkit, matrix-nio, dbus-python, pydbus, notify2, pygobject3,
|
2021-05-30 15:32:41 +00:00
|
|
|
setuptools, installShellFiles, nixosTests,
|
2020-01-22 00:52:18 +00:00
|
|
|
|
|
|
|
pytest, faker, pytest-aiohttp, aioresponses,
|
|
|
|
|
|
|
|
enableDbusUi ? true
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "pantalaimon";
|
2022-10-01 12:20:26 +00:00
|
|
|
version = "0.10.5";
|
2020-01-22 00:52:18 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
2020-03-02 12:00:00 +00:00
|
|
|
# pypi tarball miss tests
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "matrix-org";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-10-01 12:20:26 +00:00
|
|
|
sha256 = "sha256-yMhE3wKRbFHoL0vdFR8gMkNU7Su4FHbAwKQYADaaWpk=";
|
2020-01-22 00:52:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
appdirs
|
|
|
|
attrs
|
|
|
|
click
|
|
|
|
janus
|
|
|
|
keyring
|
2023-02-19 17:16:51 +00:00
|
|
|
logbook
|
2020-01-22 00:52:18 +00:00
|
|
|
matrix-nio
|
|
|
|
peewee
|
2021-07-22 15:02:31 +00:00
|
|
|
prompt-toolkit
|
2020-06-06 12:00:00 +00:00
|
|
|
setuptools
|
2023-03-03 18:25:57 +00:00
|
|
|
]
|
|
|
|
++ matrix-nio.optional-dependencies.e2e
|
|
|
|
++ lib.optionals enableDbusUi [
|
2020-01-22 00:52:18 +00:00
|
|
|
dbus-python
|
|
|
|
notify2
|
|
|
|
pygobject3
|
|
|
|
pydbus
|
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2020-01-22 00:52:18 +00:00
|
|
|
pytest
|
|
|
|
faker
|
|
|
|
pytest-aiohttp
|
|
|
|
aioresponses
|
|
|
|
];
|
|
|
|
|
2021-06-02 06:38:39 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
installShellFiles
|
|
|
|
];
|
|
|
|
|
2020-01-22 00:52:18 +00:00
|
|
|
# darwin has difficulty communicating with server, fails some integration tests
|
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest
|
|
|
|
'';
|
|
|
|
|
2021-06-02 06:38:39 +00:00
|
|
|
postInstall = ''
|
|
|
|
installManPage docs/man/*.[1-9]
|
|
|
|
'';
|
|
|
|
|
2021-05-30 15:32:41 +00:00
|
|
|
passthru.tests = {
|
|
|
|
inherit (nixosTests) pantalaimon;
|
|
|
|
};
|
|
|
|
|
2020-01-22 00:52:18 +00:00
|
|
|
meta = with lib; {
|
2020-10-11 05:55:05 +00:00
|
|
|
description = "An end-to-end encryption aware Matrix reverse proxy daemon";
|
2020-01-22 00:52:18 +00:00
|
|
|
homepage = "https://github.com/matrix-org/pantalaimon";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ valodim ];
|
|
|
|
};
|
|
|
|
}
|