32 lines
672 B
Nix
32 lines
672 B
Nix
{ stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, requests
|
|
, tox, pytest, flake8, responses
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "matrix-client";
|
|
version = "0.0.6";
|
|
name = "${pname}-${version}";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "15kx5px26hwr0sxpyjk4w61fjnabg1b57hwys1nyarc0jx4qjhiq";
|
|
};
|
|
|
|
checkInputs = [ tox pytest flake8 responses ];
|
|
|
|
propagatedBuildInputs = [ requests ];
|
|
|
|
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 ];
|
|
};
|
|
}
|