1{ lib, buildPythonPackage, fetchFromGitHub
2, requests, requests_oauthlib, six
3, pytest, pytestcache, pytest-cov, responses, mock
4}:
5
6buildPythonPackage rec {
7 version = "0.10.1";
8 pname = "mwclient";
9
10 src = fetchFromGitHub {
11 owner = "mwclient";
12 repo = "mwclient";
13 rev = "v${version}";
14 sha256 = "120snnsh9n5svfwkyj1w9jrxf99jnqm0jk282yypd3lpyca1l9hj";
15 };
16
17 checkInputs = [ pytest pytestcache pytest-cov responses mock ];
18
19 propagatedBuildInputs = [ requests requests_oauthlib six ];
20
21 checkPhase = ''
22 py.test
23 '';
24
25 meta = with lib; {
26 description = "Python client library to the MediaWiki API";
27 license = licenses.mit;
28 homepage = "https://github.com/mwclient/mwclient";
29 };
30}