2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub
|
2019-02-20 13:39:33 +00:00
|
|
|
, requests, requests_oauthlib, six
|
2020-12-11 02:14:06 +00:00
|
|
|
, pytest, pytestcache, pytestcov, responses, mock
|
2019-02-20 13:39:33 +00:00
|
|
|
}:
|
2018-10-13 18:24:23 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-07-06 15:32:08 +01:00
|
|
|
version = "0.10.1";
|
2018-10-13 18:24:23 +01:00
|
|
|
pname = "mwclient";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mwclient";
|
|
|
|
repo = "mwclient";
|
|
|
|
rev = "v${version}";
|
2020-07-06 15:32:08 +01:00
|
|
|
sha256 = "120snnsh9n5svfwkyj1w9jrxf99jnqm0jk282yypd3lpyca1l9hj";
|
2018-10-13 18:24:23 +01:00
|
|
|
};
|
|
|
|
|
2020-12-11 02:14:06 +00:00
|
|
|
checkInputs = [ pytest pytestcache pytestcov responses mock ];
|
2018-10-13 18:24:23 +01:00
|
|
|
|
2019-02-20 13:39:33 +00:00
|
|
|
propagatedBuildInputs = [ requests requests_oauthlib six ];
|
2018-10-13 18:24:23 +01:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-13 18:24:23 +01:00
|
|
|
description = "Python client library to the MediaWiki API";
|
|
|
|
license = licenses.mit;
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/mwclient/mwclient";
|
2018-10-13 18:24:23 +01:00
|
|
|
};
|
2018-10-17 05:04:24 +01:00
|
|
|
}
|