depot/third_party/nixpkgs/pkgs/development/python-modules/pywikibot/default.nix

42 lines
903 B
Nix

{
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 ];
};
}