blob: dccccb13fa05b44aa9d88c345f143cce41e801c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
{
lib,
buildPythonPackage,
fetchPypi,
mwparserfromhell,
requests,
packaging,
setuptools,
}:
buildPythonPackage rec {
pname = "pywikibot";
version = "10.7.4";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-/hHfZRLoEgaPKZLus9x/d5O62GnwU/1A7PAsebGj634=";
};
build-system = [ setuptools ];
dependencies = [
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 ];
};
}
|