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