3
0
Fork 0
forked from mirrors/nixpkgs

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;
};
}

View file

@ -390,6 +390,8 @@ in {
mpi = pkgs.openmpi;
};
mwclient = callPackage ../development/python-modules/mwclient { };
mwoauth = callPackage ../development/python-modules/mwoauth { };
nest-asyncio = callPackage ../development/python-modules/nest-asyncio { };
@ -7479,34 +7481,6 @@ in {
mypy-protobuf = callPackage ../development/python-modules/mypy-protobuf { };
mwclient = buildPythonPackage rec {
version = "0.8.3";
pname = "mwclient";
name = "${pname}-${version}";
src = pkgs.fetchFromGitHub {
owner = "mwclient";
repo = "mwclient";
rev = "v${version}";
sha256 = "0kl1yp9z5f1wl6lkm0vix87zkrbl9wcmkrrj1x5c35xvf95laf53";
};
buildInputs = with self; [ mock responses pytestcov pytest pytestcache pytestpep8 coverage ];
propagatedBuildInputs = with self; [ six requests requests_oauthlib ];
checkPhase = ''
py.test
'';
meta = {
description = "Python client library to the MediaWiki API";
maintainers = with maintainers; [ ];
license = licenses.mit;
homepage = https://github.com/mwclient/mwclient;
};
};
neuronpy = buildPythonPackage rec {
name = "neuronpy-${version}";
version = "0.1.6";