2019-02-20 13:39:33 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchFromGitHub
|
|
|
|
, requests, requests_oauthlib, six
|
|
|
|
, pytest, pytestpep8, pytestcache, pytestcov, responses, mock
|
|
|
|
}:
|
2018-10-13 17:24:23 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2019-08-05 17:45:47 +00:00
|
|
|
version = "0.10.0";
|
2018-10-13 17:24:23 +00:00
|
|
|
pname = "mwclient";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mwclient";
|
|
|
|
repo = "mwclient";
|
|
|
|
rev = "v${version}";
|
2019-08-05 17:45:47 +00:00
|
|
|
sha256 = "1c3q6lwmb05yqywc4ya98ca7hsl15niili8rccl4n1yqp77c103v";
|
2018-10-13 17:24:23 +00:00
|
|
|
};
|
|
|
|
|
2019-02-20 13:39:33 +00:00
|
|
|
checkInputs = [ pytest pytestpep8 pytestcache pytestcov responses mock ];
|
2018-10-13 17:24:23 +00:00
|
|
|
|
2019-02-20 13:39:33 +00:00
|
|
|
propagatedBuildInputs = [ requests requests_oauthlib six ];
|
2018-10-13 17:24:23 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Python client library to the MediaWiki API";
|
|
|
|
license = licenses.mit;
|
|
|
|
homepage = https://github.com/mwclient/mwclient;
|
|
|
|
};
|
2018-10-17 04:04:24 +00:00
|
|
|
}
|