grab-site: Fix package

This commit is contained in:
Sandro Jäckel 2021-01-04 14:59:03 +01:00
parent 65eccfad5d
commit ffced65cee
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -1,5 +1,4 @@
{ stdenv, python37, fetchFromGitHub }: { stdenv, python37, fetchFromGitHub }:
let let
python = python37.override { python = python37.override {
self = python; self = python;
@ -8,19 +7,32 @@ let
}; };
}; };
in with python.pkgs; buildPythonApplication rec { in
version = "2.1.19"; with python.pkgs; buildPythonApplication rec {
name = "grab-site-${version}"; pname = "grab-site";
version = "2.2.0";
src = fetchFromGitHub { src = fetchFromGitHub {
rev = version; rev = version;
owner = "ArchiveTeam"; owner = "ArchiveTeam";
repo = "grab-site"; repo = "grab-site";
sha256 = "1v1hnhv5knzdl0kj3574ccwlh171vcb7faddp095ycdmiiybalk4"; sha256 = "1jxcv9dral6h7vfpfqkp1yif6plj0vspzakymkj8hfl75nh0wpv8";
}; };
postPatch = ''
substituteInPlace setup.py \
--replace '"wpull @ https://github.com/ArchiveTeam/ludios_wpull/tarball/master#egg=wpull-3.0.7"' '"wpull"'
'';
propagatedBuildInputs = [ propagatedBuildInputs = [
click ludios_wpull manhole lmdb autobahn fb-re2 websockets cchardet click
ludios_wpull
manhole
lmdb
autobahn
fb-re2
websockets
cchardet
]; ];
checkPhase = '' checkPhase = ''