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