1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 mock,
6 pytest-cov-stub,
7 pytestCheckHook,
8 pythonOlder,
9 requests,
10 requests-oauthlib,
11 responses,
12 six,
13}:
14
15buildPythonPackage rec {
16 version = "0.11.0";
17 pname = "mwclient";
18 format = "setuptools";
19
20 disabled = pythonOlder "3.6";
21
22 src = fetchFromGitHub {
23 owner = "mwclient";
24 repo = "mwclient";
25 tag = "v${version}";
26 sha256 = "sha256-qnWVQEG1Ri0z4RYmmG/fxYrlIFFf/6PnP5Dnv0cZb5I=";
27 };
28
29 propagatedBuildInputs = [
30 requests
31 requests-oauthlib
32 six
33 ];
34
35 nativeCheckInputs = [
36 mock
37 pytest-cov-stub
38 pytestCheckHook
39 responses
40 ];
41
42 pythonImportsCheck = [ "mwclient" ];
43
44 meta = with lib; {
45 description = "Python client library to the MediaWiki API";
46 license = licenses.mit;
47 homepage = "https://github.com/mwclient/mwclient";
48 maintainers = [ ];
49 };
50}