2020-02-10 00:26:32 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, git
|
2021-05-06 17:53:39 +00:00
|
|
|
, poetry-core
|
2020-02-10 00:26:32 +00:00
|
|
|
, attrs
|
|
|
|
, future
|
|
|
|
, aiohttp
|
2021-05-06 17:53:39 +00:00
|
|
|
, aiohttp-socks
|
2020-02-10 00:26:32 +00:00
|
|
|
, aiofiles
|
|
|
|
, h11
|
|
|
|
, h2
|
|
|
|
, Logbook
|
|
|
|
, jsonschema
|
|
|
|
, unpaddedbase64
|
|
|
|
, pycryptodome
|
|
|
|
, python-olm
|
|
|
|
, peewee
|
|
|
|
, cachetools
|
|
|
|
, atomicwrites
|
2021-03-20 17:54:15 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, faker
|
|
|
|
, aioresponses
|
|
|
|
, hypothesis
|
|
|
|
, pytest-aiohttp
|
|
|
|
, pytest-benchmark
|
2020-02-10 00:26:32 +00:00
|
|
|
}:
|
2019-11-15 14:20:03 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-05-10 12:00:00 +00:00
|
|
|
pname = "matrix-nio";
|
2021-05-20 16:58:52 +00:00
|
|
|
version = "0.18.1";
|
2021-05-06 17:53:39 +00:00
|
|
|
format = "pyproject";
|
2019-11-15 14:20:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "poljar";
|
|
|
|
repo = "matrix-nio";
|
|
|
|
rev = version;
|
2021-05-20 16:58:52 +00:00
|
|
|
sha256 = "QHNirglqSxGMmbST96LUp9MHoGj0yAwLoTRlsbMqwaM=";
|
2019-11-15 14:20:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
git
|
2021-05-06 17:53:39 +00:00
|
|
|
poetry-core
|
2021-03-20 17:54:15 +00:00
|
|
|
pytestCheckHook
|
2019-11-15 14:20:03 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
attrs
|
|
|
|
future
|
2020-02-10 00:26:32 +00:00
|
|
|
aiohttp
|
2021-05-06 17:53:39 +00:00
|
|
|
aiohttp-socks
|
2020-02-10 00:26:32 +00:00
|
|
|
aiofiles
|
2019-11-15 14:20:03 +00:00
|
|
|
h11
|
|
|
|
h2
|
|
|
|
Logbook
|
|
|
|
jsonschema
|
|
|
|
unpaddedbase64
|
2020-02-10 00:26:32 +00:00
|
|
|
pycryptodome
|
|
|
|
python-olm
|
|
|
|
peewee
|
2019-12-01 02:36:35 +00:00
|
|
|
cachetools
|
2020-02-10 00:26:32 +00:00
|
|
|
atomicwrites
|
2019-11-15 14:20:03 +00:00
|
|
|
];
|
|
|
|
|
2021-03-20 17:54:15 +00:00
|
|
|
checkInputs = [
|
|
|
|
faker
|
|
|
|
aioresponses
|
|
|
|
hypothesis
|
|
|
|
pytest-aiohttp
|
|
|
|
pytest-benchmark
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# touches network
|
|
|
|
"test_connect_wrapper"
|
|
|
|
# time dependent and flaky
|
|
|
|
"test_transfer_monitor_callbacks"
|
|
|
|
];
|
2019-11-15 14:20:03 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A Python Matrix client library, designed according to sans I/O principles";
|
|
|
|
homepage = "https://github.com/poljar/matrix-nio";
|
|
|
|
license = licenses.isc;
|
2020-04-21 12:00:00 +00:00
|
|
|
maintainers = with maintainers; [ tilpner emily symphorien ];
|
2019-11-15 14:20:03 +00:00
|
|
|
};
|
|
|
|
}
|