571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
33 lines
964 B
Nix
33 lines
964 B
Nix
{ lib, python3, fetchFromGitHub }:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "wayback-machine-archiver";
|
|
version = "1.9.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "agude";
|
|
repo = "wayback-machine-archiver";
|
|
rev = "v${version}";
|
|
sha256 = "0dnnqx507gpj8wsx6f2ivfmha969ydayiqsvxh23p9qcixw9257x";
|
|
};
|
|
|
|
nativeBuildInputs = with python3.pkgs; [ pypandoc ];
|
|
propagatedBuildInputs = with python3.pkgs; [ requests ];
|
|
nativeCheckInputs = with python3.pkgs; [ pytestCheckHook requests-mock ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace \"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";
|
|
};
|
|
}
|