1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytestCheckHook 5, requests 6, responses 7, urllib3 8}: 9 10buildPythonPackage rec { 11 pname = "matrix_client"; 12 version = "0.4.0"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "0mii7ib3bah5ppqs7i8sjv5l0zbl57011908m4l0jbyby90ayy06"; 17 }; 18 19 propagatedBuildInputs = [ 20 requests 21 urllib3 22 ]; 23 24 checkInputs = [ 25 pytestCheckHook 26 responses 27 ]; 28 29 postPatch = '' 30 substituteInPlace setup.py --replace \ 31 "pytest-runner~=5.1" "" 32 ''; 33 34 pythonImportsCheck = [ "matrix_client" ]; 35 36 meta = with lib; { 37 description = "Python Matrix Client-Server SDK"; 38 homepage = "https://github.com/matrix-org/matrix-python-sdk"; 39 license = licenses.asl20; 40 maintainers = with maintainers; [ olejorgenb ]; 41 }; 42}