pythonPackages.mwclient: 0.8.3 -> 0.9.1 | move to a seperate file

This commit is contained in:
nagato.pain
2018-10-13 10:24:23 -07:00
parent 994b84d816
commit 206f9ce2e0
2 changed files with 32 additions and 28 deletions

View File

@@ -0,0 +1,30 @@
{ stdenv, buildPythonPackage, fetchFromGitHub, requests, requests_oauthlib
, responses, mock, pytestcov, pytest, pytestcache, pytestpep8, coverage, six }:
buildPythonPackage rec {
version = "0.9.1";
pname = "mwclient";
name = "${pname}-${version}";
src = fetchFromGitHub {
owner = "mwclient";
repo = "mwclient";
rev = "v${version}";
sha256 = "0l7l5j7znlyn2yqvdfxr4dq23wyp6d8z49pnkjqy2kan11nrjzym";
};
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";
maintainers = with maintainers; [ ];
license = licenses.mit;
homepage = https://github.com/mwclient/mwclient;
};
}