50 lines
886 B
Nix
50 lines
886 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
mock,
|
|
pytest-cov-stub,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
requests,
|
|
requests-oauthlib,
|
|
responses,
|
|
six,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "0.11.0";
|
|
pname = "mwclient";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mwclient";
|
|
repo = "mwclient";
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-qnWVQEG1Ri0z4RYmmG/fxYrlIFFf/6PnP5Dnv0cZb5I=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
requests
|
|
requests-oauthlib
|
|
six
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
mock
|
|
pytest-cov-stub
|
|
pytestCheckHook
|
|
responses
|
|
];
|
|
|
|
pythonImportsCheck = [ "mwclient" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python client library to the MediaWiki API";
|
|
license = licenses.mit;
|
|
homepage = "https://github.com/mwclient/mwclient";
|
|
maintainers = [ ];
|
|
};
|
|
}
|