python3Packages.pywikibot: init at 9.5.0 (#333068)

This commit is contained in:
Tomodachi94
2024-12-04 10:06:14 -08:00
committed by GitHub
2 changed files with 44 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
{
lib,
buildPythonPackage,
fetchPypi,
mwparserfromhell,
requests,
packaging,
pythonOlder,
}:
buildPythonPackage rec {
pname = "pywikibot";
version = "9.5.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-ZUOsiadQ2zekQDc+wc9MvNgLBXQkguvrDufpC8+1kLo=";
};
propagatedBuildInputs = [
mwparserfromhell
requests
packaging
];
# Tests attempt to install a tool using pip, which fails due to the sandbox
doCheck = false;
pythonImportsCheck = [ "pywikibot" ];
meta = {
description = "Python MediaWiki bot framework";
mainProgram = "pwb";
homepage = "https://www.mediawiki.org/wiki/Manual:Pywikibot";
changelog = "https://doc.wikimedia.org/pywikibot/master/changelog.html";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ tomodachi94 ];
};
}

View File

@@ -13445,6 +13445,8 @@ self: super: with self; {
pywfa = callPackage ../development/python-modules/pywfa { };
pywikibot = callPackage ../development/python-modules/pywikibot { };
pywilight = callPackage ../development/python-modules/pywilight { };
pywinrm = callPackage ../development/python-modules/pywinrm { };