2019-02-20 14:39:33 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchFromGitHub
|
|
|
|
, requests, requests_oauthlib, six
|
|
|
|
, pytest, pytestpep8, pytestcache, pytestcov, responses, mock
|
|
|
|
}:
|
2018-10-13 19:24:23 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2018-12-14 21:04:02 +01:00
|
|
|
version = "0.9.3";
|
2018-10-13 19:24:23 +02:00
|
|
|
pname = "mwclient";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mwclient";
|
|
|
|
repo = "mwclient";
|
|
|
|
rev = "v${version}";
|
2018-12-14 21:04:02 +01:00
|
|
|
sha256 = "1kbrmq8zli2j93vmc2887bs7mqr4q1n908nbi1jjcci5v4cd4cqw";
|
2018-10-13 19:24:23 +02:00
|
|
|
};
|
|
|
|
|
2019-02-20 14:39:33 +01:00
|
|
|
checkInputs = [ pytest pytestpep8 pytestcache pytestcov responses mock ];
|
2018-10-13 19:24:23 +02:00
|
|
|
|
2019-02-20 14:39:33 +01:00
|
|
|
propagatedBuildInputs = [ requests requests_oauthlib six ];
|
2018-10-13 19:24:23 +02: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 06:04:24 +02:00
|
|
|
}
|