2017-08-24 15:07:01 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2017-08-25 12:50:41 +01:00
|
|
|
, requests
|
|
|
|
, tox, pytest, flake8, responses
|
2017-08-24 15:07:01 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "matrix-client";
|
2018-06-12 17:47:03 +01:00
|
|
|
version = "0.2.0";
|
2017-08-24 15:07:01 +01:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-06-12 17:47:03 +01:00
|
|
|
sha256 = "b96e87adf1bc2270166b2a4cff1320d2ef283779ea8b3c4edd0d9051fc7b7924";
|
2017-08-24 15:07:01 +01:00
|
|
|
};
|
|
|
|
|
2017-08-25 12:50:41 +01:00
|
|
|
checkInputs = [ tox pytest flake8 responses ];
|
2017-08-24 15:07:01 +01:00
|
|
|
|
2017-08-25 12:50:41 +01:00
|
|
|
propagatedBuildInputs = [ requests ];
|
2017-08-24 15:07:01 +01:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Matrix Client-Server SDK";
|
|
|
|
homepage = https://github.com/matrix-org/matrix-python-sdk;
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ olejorgenb ];
|
|
|
|
};
|
|
|
|
}
|