diff options
author | nagato.pain <iuns@outlook.fr> | 2018-10-13 10:24:23 -0700 |
---|---|---|
committer | nagato.pain <iuns@outlook.fr> | 2018-10-13 10:24:23 -0700 |
commit | 206f9ce2e008ac85e58fcfbf731e60ab2847e5d8 (patch) | |
tree | e18f03cb73dd750e3147f9a03551c0a3927fc656 /pkgs/development/python-modules | |
parent | 994b84d816b76425964cabdbee334b52aa151d52 (diff) | |
download | nixlib-206f9ce2e008ac85e58fcfbf731e60ab2847e5d8.tar nixlib-206f9ce2e008ac85e58fcfbf731e60ab2847e5d8.tar.gz nixlib-206f9ce2e008ac85e58fcfbf731e60ab2847e5d8.tar.bz2 nixlib-206f9ce2e008ac85e58fcfbf731e60ab2847e5d8.tar.lz nixlib-206f9ce2e008ac85e58fcfbf731e60ab2847e5d8.tar.xz nixlib-206f9ce2e008ac85e58fcfbf731e60ab2847e5d8.tar.zst nixlib-206f9ce2e008ac85e58fcfbf731e60ab2847e5d8.zip |
pythonPackages.mwclient: 0.8.3 -> 0.9.1 | move to a seperate file
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r-- | pkgs/development/python-modules/mwclient/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/mwclient/default.nix b/pkgs/development/python-modules/mwclient/default.nix new file mode 100644 index 000000000000..186bc26f002f --- /dev/null +++ b/pkgs/development/python-modules/mwclient/default.nix @@ -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; + }; +} \ No newline at end of file |