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