diff options
| author | 2025-12-28 12:17:43 +0000 | |
|---|---|---|
| committer | 2025-12-28 12:17:43 +0000 | |
| commit | 9e60e98aca7cc9663b299c71f50eee7432b696aa (patch) | |
| tree | b0219f875d974b4e088d0aa6d66868a4f2eb504d | |
| parent | ia-metadata-for-dir2ia: add more removed keys (diff) | |
| signature | ||
pkgs/dokuwiki-dumper: init
| -rw-r--r-- | pkgs/default.nix | 2 | ||||
| -rw-r--r-- | pkgs/dokuwiki-dumper/default.nix | 49 | ||||
| -rw-r--r-- | pkgs/shell/default.nix | 2 |
3 files changed, 53 insertions, 0 deletions
diff --git a/pkgs/default.nix b/pkgs/default.nix index 277fc6d..fc69a1f 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -13,6 +13,7 @@ lib.makeScope newScope (self: { pywikibot-scripts = self.pywikibot-scripts; }; wikiteam3 = self.callPackage ./wikiteam3 { }; + dokuwiki-dumper = self.callPackage ./dokuwiki-dumper { }; little-things = self.callPackage ./little-things { }; @@ -21,6 +22,7 @@ lib.makeScope newScope (self: { pywb = self.pywb; pywikibot = self.pywikibot; wikiteam3 = self.wikiteam3; + dokuwiki-dumper = self.dokuwiki-dumper; }; }) diff --git a/pkgs/dokuwiki-dumper/default.nix b/pkgs/dokuwiki-dumper/default.nix new file mode 100644 index 0000000..16549b7 --- /dev/null +++ b/pkgs/dokuwiki-dumper/default.nix @@ -0,0 +1,49 @@ +{ + 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" + ]; + + 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; [ ]; + }; +} diff --git a/pkgs/shell/default.nix b/pkgs/shell/default.nix index 62879d2..1b6ad3e 100644 --- a/pkgs/shell/default.nix +++ b/pkgs/shell/default.nix @@ -1,4 +1,5 @@ { + dokuwiki-dumper, fossil, git, internetarchive, @@ -33,5 +34,6 @@ mkShellNoCC { little-things (zstd.overrideAttrs(prev: { buildInputs = prev.buildInputs ++ [ zlib ]; cmakeFlags = prev.cmakeFlags ++ [ "-DZSTD_ZLIB_SUPPORT:BOOL=ON" ]; })) wikiteam3 + dokuwiki-dumper ]; } |
