3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/instant-messengers/pantalaimon/default.nix

65 lines
1.3 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,
2020-06-06 13:00:00 +01:00
setuptools,
2020-01-22 00:52:18 +00:00
pytest, faker, pytest-aiohttp, aioresponses,
enableDbusUi ? true
}:
buildPythonApplication rec {
pname = "pantalaimon";
2020-06-21 13:00:00 +01:00
version = "0.6.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;
2020-06-21 13:00:00 +01:00
sha256 = "1pjrq71fkpvsc79nwhxhwjkqvqhj5wsnnwvsgslghaajdaw3n6wd";
2020-01-22 00:52:18 +00:00
};
propagatedBuildInputs = [
aiohttp
appdirs
attrs
click
janus
keyring
Logbook
matrix-nio
peewee
prompt_toolkit
2020-06-06 13:00:00 +01:00
setuptools
2020-01-22 00:52:18 +00:00
] ++ 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 ];
};
}