blob: fa2445662c06d0b4d03257b1159db1d81098950c (
plain)
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
44
45
46
47
48
49
50
|
{
lib,
buildPythonPackage,
fetchPypi,
pytestCheckHook,
requests,
responses,
setuptools,
urllib3,
}:
buildPythonPackage rec {
pname = "matrix-client";
version = "0.4.0";
pyproject = true;
src = fetchPypi {
pname = "matrix_client";
inherit version;
hash = "sha256-BnivQPLLLwkoqQikEMApdH1Ay5YaxaPxvQWqNVY8MVY=";
};
build-system = [ setuptools ];
pythonRelaxDeps = [ "urllib3" ];
dependencies = [
requests
urllib3
];
nativeCheckInputs = [
pytestCheckHook
responses
];
postPatch = ''
substituteInPlace setup.py --replace \
"pytest-runner~=5.1" ""
'';
pythonImportsCheck = [ "matrix_client" ];
meta = {
description = "Python Matrix Client-Server SDK";
homepage = "https://github.com/matrix-org/matrix-python-sdk";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ olejorgenb ];
};
}
|