2025-06-18 21:52:54 +00:00

43 lines
904 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
mwparserfromhell,
requests,
packaging,
pythonOlder,
}:
buildPythonPackage rec {
pname = "pywikibot";
version = "10.2.0";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-pwXF2JgcK6rA1YNQ2VQ1svBDsc8xt3Xx2+o0Xr+cOZM=";
};
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 ];
};
}