about summary refs log tree commit diff
path: root/pkgs/development/python-modules/matrix-client/default.nix
blob: 34ec95b866f5ff2343d05ac2a5daa7631f0a691b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ stdenv
, buildPythonPackage
, fetchPypi
, requests
, tox, pytest, flake8, responses
}:

buildPythonPackage rec {
  pname = "matrix-client";
  version = "0.2.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "b96e87adf1bc2270166b2a4cff1320d2ef283779ea8b3c4edd0d9051fc7b7924";
  };

  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 ];
  };
}