blob: ba4dd2a0876dcbf6a792cd631b4c44713d08f066 (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
{
lib,
fetchFromGitHub,
python3,
python3Packages,
stdenv,
}:
python3Packages.buildPythonPackage rec {
pname = "wikiteam3";
version = "0.2.4";
pyproject = true;
build-system = [ python3Packages.setuptools ];
propagatedBuildInputs = [
python3Packages.pdm-backend
python3Packages.requests
python3Packages.beautifulsoup4
python3Packages.lxml
python3Packages.internetarchive
python3Packages.rich
python3Packages.python-slugify
python3Packages.typing-extensions
];
pythonRelaxDeps = [
"lxml"
];
postPatch = ''
substituteInPlace dokuWikiDumper/dump/doku_dumper.py --replace-fail \
"avoidSites(doku_url, session=session)" \
"if not \"SW_IGAVS\" in os.environ.keys(): avoidSites(doku_url, session=session)"
'';
disabled = python3Packages.pythonOlder "3.8";
src = fetchFromGitHub {
owner = "saveweb";
repo = "dokuwiki-dumper";
rev = "83f1c8e0176c756476cf178f4ca784c338918254";
hash = "sha256-jMkhXcOuVSEwebRR3sH0jybCJfvoMTMnVBSXdzleHe4=";
};
#doCheck = false;
pythonImportsCheck = [ "dokuWikiDumper" "dokuWikiUploader" ];
meta = {
description = "A tool for archiving DokuWiki";
homepage = "https://github.com/saveweb/dokuwiki-dumper";
changelog = "https://github.com/saveweb/dokuwiki-dumper/tags";
license = lib.licenses.gpl3;
#maintainers = with lib.maintainers; [ ];
};
}
|