nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, buildPythonPackage, fetchPypi, aiohttp, pythonOlder
2, sqlalchemy, ruamel-yaml, CommonMark, lxml, aiosqlite
3}:
4
5buildPythonPackage rec {
6 pname = "mautrix";
7 version = "0.16.3";
8
9 src = fetchPypi {
10 inherit pname version;
11 sha256 = "sha256-OpHLh5pCzGooQ5yxAa0+85m/szAafV+l+OfipQcfLtU=";
12 };
13
14 propagatedBuildInputs = [
15 aiohttp
16
17 # defined in optional-requirements.txt
18 sqlalchemy
19 aiosqlite
20 ruamel-yaml
21 CommonMark
22 lxml
23 ];
24
25 disabled = pythonOlder "3.8";
26
27 # no tests available
28 doCheck = false;
29
30 pythonImportsCheck = [ "mautrix" ];
31
32 meta = with lib; {
33 homepage = "https://github.com/tulir/mautrix-python";
34 description = "A Python 3 asyncio Matrix framework.";
35 license = licenses.mpl20;
36 maintainers = with maintainers; [ nyanloutre ma27 sumnerevans ];
37 };
38}