blob: d5ea238abc311b00f36415e506c2d68b0eebd165 (
about) (
plain) (
blame)
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
|
{
lib,
fetchgit,
python3Packages,
}:
python3Packages.buildPythonPackage rec {
pname = "pywikibot-scripts";
version = "10.7.0";
format = "pyproject";
disabled = python3Packages.pythonOlder "3.8";
src = fetchgit {
url = "https://gerrit.wikimedia.org/r/pywikibot/core";
rev = "f1b4b4d0cfbc199c36fb72570425328daa93b067";
sparseCheckout = [ "pywikibot/scripts" "scripts" ];
fetchSubmodules = true;
hash = "sha256-MXwrn3WLWmddZRKNryELDRlKmqCqj/6WGDJJbnRAiZs=";
};
propagatedBuildInputs = [
python3Packages.mwparserfromhell
python3Packages.requests
python3Packages.setuptools
];
# Tests attempt to install a tool using pip, which fails due to the sandbox
doCheck = false;
pythonImportsCheck = [ "pywikibot.scripts" ];
meta = {
description = "Python MediaWiki bot framework scripts";
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; [ ];
};
}
|