1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pytestCheckHook,
6 requests,
7 responses,
8 urllib3,
9}:
10
11buildPythonPackage rec {
12 pname = "matrix-client";
13 version = "0.4.0";
14 format = "setuptools";
15
16 src = fetchPypi {
17 pname = "matrix_client";
18 inherit version;
19 sha256 = "0mii7ib3bah5ppqs7i8sjv5l0zbl57011908m4l0jbyby90ayy06";
20 };
21
22 propagatedBuildInputs = [
23 requests
24 urllib3
25 ];
26
27 nativeCheckInputs = [
28 pytestCheckHook
29 responses
30 ];
31
32 postPatch = ''
33 substituteInPlace setup.py --replace \
34 "pytest-runner~=5.1" ""
35 '';
36
37 pythonImportsCheck = [ "matrix_client" ];
38
39 meta = with lib; {
40 description = "Python Matrix Client-Server SDK";
41 homepage = "https://github.com/matrix-org/matrix-python-sdk";
42 license = licenses.asl20;
43 maintainers = with maintainers; [ olejorgenb ];
44 };
45}