2020-11-30 08:33:03 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, aiohttp, pythonOlder
|
2021-12-06 16:07:01 +00:00
|
|
|
, sqlalchemy, ruamel-yaml, CommonMark, lxml
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mautrix";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "0.11.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "sha256-eZ8fWemS808Hz6KoQWfMsk5WfaO+vj0kTyInhtE20Qk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
|
|
|
|
# defined in optional-requirements.txt
|
|
|
|
sqlalchemy
|
2021-12-06 16:07:01 +00:00
|
|
|
ruamel-yaml
|
2020-04-24 23:36:52 +00:00
|
|
|
CommonMark
|
|
|
|
lxml
|
|
|
|
];
|
|
|
|
|
2020-11-30 08:33:03 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# no tests available
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
pythonImportsCheck = [ "mautrix" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/tulir/mautrix-python";
|
|
|
|
description = "A Python 3 asyncio Matrix framework.";
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|