nixpkgs/pkgs/development/python-modules/mwclient/default.nix
Drew Risinger 6bb2eae2ff treewide: remove dead pytestpep8 references
pytestpep8 was removed in 25c9946f95.
This removes pytestpep8 in the rest of the tree, where it was hardly
used.
2020-12-10 21:14:42 -05:00

31 lines
726 B
Nix

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