Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 746 B view raw
1{ stdenv, buildPythonPackage, fetchFromGitHub 2, requests, requests_oauthlib, six 3, pytest, pytestpep8, pytestcache, pytestcov, responses, mock 4}: 5 6buildPythonPackage rec { 7 version = "0.9.3"; 8 pname = "mwclient"; 9 10 src = fetchFromGitHub { 11 owner = "mwclient"; 12 repo = "mwclient"; 13 rev = "v${version}"; 14 sha256 = "1kbrmq8zli2j93vmc2887bs7mqr4q1n908nbi1jjcci5v4cd4cqw"; 15 }; 16 17 checkInputs = [ pytest pytestpep8 pytestcache pytestcov responses mock ]; 18 19 propagatedBuildInputs = [ requests requests_oauthlib six ]; 20 21 checkPhase = '' 22 py.test 23 ''; 24 25 meta = with stdenv.lib; { 26 description = "Python client library to the MediaWiki API"; 27 license = licenses.mit; 28 homepage = https://github.com/mwclient/mwclient; 29 }; 30}