nixpkgs/pkgs/applications/networking/instant-messengers/pantalaimon/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

77 lines
1.5 KiB
Nix
Raw Normal View History

2020-03-02 12:00:00 +00:00
{ lib, stdenv, buildPythonApplication, fetchFromGitHub, pythonOlder,
2020-01-22 00:52:18 +00:00
attrs, aiohttp, appdirs, click, keyring, Logbook, peewee, janus,
prompt-toolkit, matrix-nio, dbus-python, pydbus, notify2, pygobject3,
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
Logbook
matrix-nio
peewee
prompt-toolkit
2020-06-06 12:00:00 +00:00
setuptools
] ++ lib.optionals enableDbusUi [
2020-01-22 00:52:18 +00:00
dbus-python
notify2
pygobject3
pydbus
];
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]
'';
passthru.tests = {
inherit (nixosTests) pantalaimon;
};
2020-01-22 00:52:18 +00:00
meta = with lib; {
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 ];
};
}