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

@ -1,5 +1,4 @@
{ stdenv, python37, fetchFromGitHub }:
let
python = python37.override {
self = python;
@ -8,19 +7,32 @@ let
};
};
in with python.pkgs; buildPythonApplication rec {
version = "2.1.19";
name = "grab-site-${version}";
in
with python.pkgs; buildPythonApplication rec {
pname = "grab-site";
version = "2.2.0";
src = fetchFromGitHub {
rev = version;
owner = "ArchiveTeam";
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 = [
click ludios_wpull manhole lmdb autobahn fb-re2 websockets cchardet
click
ludios_wpull
manhole
lmdb
autobahn
fb-re2
websockets
cchardet
];
checkPhase = ''