1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-13 16:15:30 +00:00
nixpkgs/pkgs/tools/backup/grab-site/default.nix

31 lines
800 B
Nix
Raw Normal View History

2018-12-14 02:20:17 +00:00
{ stdenv, python3Packages, fetchFromGitHub }:
python3Packages.buildPythonApplication rec {
2019-04-29 04:08:53 +01:00
version = "2.1.15";
2018-12-14 02:20:17 +00:00
name = "grab-site-${version}";
src = fetchFromGitHub {
rev = "${version}";
2019-04-29 04:08:53 +01:00
owner = "ArchiveTeam";
2018-12-14 02:20:17 +00:00
repo = "grab-site";
2019-04-29 04:08:53 +01:00
sha256 = "1h3ajsj1c2wlxji1san97vmjd9d97dv0rh0jw1p77irkcvhzfpj8";
2018-12-14 02:20:17 +00:00
};
propagatedBuildInputs = with python3Packages; [
click ludios_wpull manhole lmdb autobahn fb-re2 websockets cchardet
];
checkPhase = ''
export PATH=$PATH:$out/bin
bash ./tests/offline-tests
'';
meta = with stdenv.lib; {
description = "Crawler for web archiving with WARC output";
2019-04-29 04:08:53 +01:00
homepage = https://github.com/ArchiveTeam/grab-site;
2018-12-14 02:20:17 +00:00
license = licenses.mit;
maintainers = with maintainers; [ ivan ];
platforms = platforms.all;
};
}