My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/mwclient/default.nix

54 lines
944 B

{ lib
, buildPythonPackage
, fetchFromGitHub
, mock
, pytestCheckHook
, pythonOlder
, requests
, requests-oauthlib
, responses
, six
}:
buildPythonPackage rec {
version = "0.10.1";
pname = "mwclient";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "mwclient";
repo = "mwclient";
rev = "v${version}";
sha256 = "120snnsh9n5svfwkyj1w9jrxf99jnqm0jk282yypd3lpyca1l9hj";
};
propagatedBuildInputs = [
requests
requests-oauthlib
six
];
checkInputs = [
mock
pytestCheckHook
responses
];
postPatch = ''
substituteInPlace setup.cfg \
--replace " --cov mwclient test" ""
'';
pythonImportsCheck = [
"mwclient"
];
meta = with lib; {
description = "Python client library to the MediaWiki API";
license = licenses.mit;
homepage = "https://github.com/mwclient/mwclient";
maintainers = with maintainers; [ ];
};
}