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