Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
46 lines
1015 B
Nix
46 lines
1015 B
Nix
{
|
|
lib,
|
|
python3,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "wayback-machine-archiver";
|
|
version = "1.9.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "agude";
|
|
repo = "wayback-machine-archiver";
|
|
rev = "v${version}";
|
|
sha256 = "0dnnqx507gpj8wsx6f2ivfmha969ydayiqsvxh23p9qcixw9257x";
|
|
};
|
|
|
|
build-system = with python3.pkgs; [
|
|
setuptools
|
|
pypandoc
|
|
];
|
|
|
|
dependencies = with python3.pkgs; [ requests ];
|
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
|
pytestCheckHook
|
|
requests-mock
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace-fail \"pytest-runner\", ""
|
|
'';
|
|
|
|
pythonImportsCheck = [ "wayback_machine_archiver" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python script to submit web pages to the Wayback Machine for archiving";
|
|
homepage = "https://github.com/agude/wayback-machine-archiver";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ dandellion ];
|
|
mainProgram = "archiver";
|
|
};
|
|
}
|