mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03:00
Merge pull request #171981 from dali99/wayback-machine-archiver
This commit is contained in:
commit
f721eb736c
31
pkgs/tools/misc/wayback-machine-archiver/default.nix
Normal file
31
pkgs/tools/misc/wayback-machine-archiver/default.nix
Normal file
@ -0,0 +1,31 @@
|
||||
{ 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 ];
|
||||
checkInputs = with python3.pkgs; [ pytestCheckHook requests-mock ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace \"pytest-runner\", ""
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "wayback_machine_archiver" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A 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 ];
|
||||
};
|
||||
}
|
@ -33686,6 +33686,8 @@ with pkgs;
|
||||
|
||||
why3 = callPackage ../applications/science/logic/why3 { };
|
||||
|
||||
wayback-machine-archiver = callPackage ../tools/misc/wayback-machine-archiver { };
|
||||
|
||||
workcraft = callPackage ../applications/science/logic/workcraft {};
|
||||
|
||||
yices = callPackage ../applications/science/logic/yices {
|
||||
|
Loading…
Reference in New Issue
Block a user