1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools,
6 attrs,
7 unittestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "matrix-common";
12 version = "1.3.0";
13 format = "pyproject";
14
15 src = fetchPypi {
16 pname = "matrix_common";
17 inherit version;
18 hash = "sha256-YuEhzM2fJDQXtX7DenbcRK6xmKelxnr9a4J1mS/yq9E=";
19 };
20
21 nativeBuildInputs = [ setuptools ];
22
23 propagatedBuildInputs = [ attrs ];
24
25 nativeCheckInputs = [ unittestCheckHook ];
26
27 pythonImportsCheck = [ "matrix_common" ];
28
29 meta = with lib; {
30 description = "Common utilities for Synapse, Sydent and Sygnal";
31 homepage = "https://github.com/matrix-org/matrix-python-common";
32 license = licenses.asl20;
33 maintainers = with maintainers; [ sumnerevans ];
34 };
35}