From d7e5cf97c05884b9aa1fa82017559b1da19a4624 Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Sun, 29 Jun 2025 08:54:21 -0600 Subject: [PATCH] warcit: init at unstable-2024-11-28 --- pkgs/by-name/wa/warcit/package.nix | 40 ++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 pkgs/by-name/wa/warcit/package.nix diff --git a/pkgs/by-name/wa/warcit/package.nix b/pkgs/by-name/wa/warcit/package.nix new file mode 100644 index 0000000000000..d0372c354e89d --- /dev/null +++ b/pkgs/by-name/wa/warcit/package.nix @@ -0,0 +1,40 @@ +{ + lib, + python3, + fetchFromGitHub, +}: + +python3.pkgs.buildPythonApplication { + pname = "warcit"; + version = "0.4.0-unstable-2024-11-28"; + pyproject = true; + + src = fetchFromGitHub { + owner = "webrecorder"; + repo = "warcit"; + rev = "3cba1ad2c3e9bddd33c3babf45c2a03b5d8935ef"; + hash = "sha256-hqQPQWmhR6/NP3XsQkjlOIVbbDfoOf9uhhvlJvIPNZE="; + }; + + build-system = with python3.pkgs; [ + setuptools + ]; + + dependencies = with python3.pkgs; [ + warcio + faust-cchardet + pyyaml + ]; + + pythonImportsCheck = [ + "warcit" + ]; + + meta = { + description = "Convert Directories, Files and ZIP Files to Web Archives (WARC)"; + homepage = "https://github.com/webrecorder/warcit"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ zhaofengli ]; + mainProgram = "warcit"; + }; +}