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