2021-01-25 09:26:54 +01:00
|
|
|
{ lib
|
2017-08-24 16:07:01 +02:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-07-27 18:42:07 +02:00
|
|
|
, pytestCheckHook
|
2017-08-25 12:50:41 +01:00
|
|
|
, requests
|
2021-07-27 18:42:07 +02:00
|
|
|
, responses
|
|
|
|
, urllib3
|
2017-08-24 16:07:01 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2018-07-07 00:05:19 +08:00
|
|
|
pname = "matrix_client";
|
2021-07-27 18:42:07 +02:00
|
|
|
version = "0.4.0";
|
2017-08-24 16:07:01 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-07-27 18:42:07 +02:00
|
|
|
sha256 = "0mii7ib3bah5ppqs7i8sjv5l0zbl57011908m4l0jbyby90ayy06";
|
2017-08-24 16:07:01 +02:00
|
|
|
};
|
|
|
|
|
2021-07-27 18:42:07 +02:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
urllib3
|
|
|
|
];
|
2017-08-24 16:07:01 +02:00
|
|
|
|
2021-07-27 18:42:07 +02:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
responses
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py --replace \
|
|
|
|
"pytest-runner~=5.1" ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "matrix_client" ];
|
2017-08-24 16:07:01 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2021-07-27 18:42:07 +02:00
|
|
|
description = "Python Matrix Client-Server SDK";
|
2020-03-31 21:11:51 -04:00
|
|
|
homepage = "https://github.com/matrix-org/matrix-python-sdk";
|
2017-08-24 16:07:01 +02:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ olejorgenb ];
|
|
|
|
};
|
|
|
|
}
|