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