depot/third_party/nixpkgs/pkgs/development/python-modules/mwclient/default.nix
Default email 21cecf6002 Project import generated by Copybara.
GitOrigin-RevId: dd14e5d78e90a2ccd6007e569820de9b4861a6c2
2021-07-24 08:14:16 -04:00

30 lines
718 B
Nix

{ lib, buildPythonPackage, fetchFromGitHub
, requests, requests_oauthlib, six
, pytest, pytestcache, pytest-cov, responses, mock
}:
buildPythonPackage rec {
version = "0.10.1";
pname = "mwclient";
src = fetchFromGitHub {
owner = "mwclient";
repo = "mwclient";
rev = "v${version}";
sha256 = "120snnsh9n5svfwkyj1w9jrxf99jnqm0jk282yypd3lpyca1l9hj";
};
checkInputs = [ pytest pytestcache pytest-cov responses mock ];
propagatedBuildInputs = [ requests requests_oauthlib six ];
checkPhase = ''
py.test
'';
meta = with lib; {
description = "Python client library to the MediaWiki API";
license = licenses.mit;
homepage = "https://github.com/mwclient/mwclient";
};
}