2022-11-21 17:40:18 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, aiohttp
|
|
|
|
, pythonOlder
|
|
|
|
, sqlalchemy
|
|
|
|
, ruamel-yaml
|
|
|
|
, CommonMark
|
|
|
|
, lxml
|
|
|
|
, aiosqlite
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mautrix";
|
2022-12-17 10:02:37 +00:00
|
|
|
version = "0.18.9";
|
2022-11-21 17:40:18 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-12-17 10:02:37 +00:00
|
|
|
hash = "sha256-Ihaz/izB9L6osu3CPwBWOwLZ2JOLKhsDuqOUf/B02qI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
|
|
|
|
# defined in optional-requirements.txt
|
|
|
|
sqlalchemy
|
2021-12-24 04:21:11 +00:00
|
|
|
aiosqlite
|
2021-12-06 16:07:01 +00:00
|
|
|
ruamel-yaml
|
2020-04-24 23:36:52 +00:00
|
|
|
CommonMark
|
|
|
|
lxml
|
|
|
|
];
|
|
|
|
|
|
|
|
# no tests available
|
|
|
|
doCheck = false;
|
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"mautrix"
|
|
|
|
];
|
2021-02-13 14:23:35 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
2022-11-21 17:40:18 +00:00
|
|
|
description = "Asyncio Matrix framework";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/tulir/mautrix-python";
|
2022-11-21 17:40:18 +00:00
|
|
|
changelog = "https://github.com/mautrix/python/releases/tag/v${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mpl20;
|
2021-10-04 12:37:57 +00:00
|
|
|
maintainers = with maintainers; [ nyanloutre ma27 sumnerevans ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|