grab-site: 2.2.0 -> 2.2.2; pythonPackages.ludios_wpull: 3.0.7 -> 3.0.9

Use SQLAlchemy 1.3 because ludios_wpull is incompatible with SQLAlchemy 1.4.

Use Python 3.8 instead of Python 3.7, as namedlist 1.8 fixed compatibility
with Python 3.8. We cannot use Python 3.9 until
https://github.com/ArchiveTeam/ludios_wpull/issues/20 is fixed.

+16 -9
+4 -4
pkgs/development/python-modules/ludios_wpull/default.nix
··· 1 { lib 2 , buildPythonPackage 3 , fetchFromGitHub 4 - , isPy3k 5 , chardet 6 , dnspython 7 , html5-parser ··· 15 16 buildPythonPackage rec { 17 pname = "ludios_wpull"; 18 - version = "3.0.7"; 19 20 - disabled = (!isPy3k) || (pythonAtLeast "3.8"); 21 22 src = fetchFromGitHub { 23 rev = version; 24 owner = "ludios"; 25 repo = "wpull"; 26 - sha256 = "1j96avm0ynbazypzp766wh26n4qc73y7wgsiqfrdfl6x7rx20wgf"; 27 }; 28 29 propagatedBuildInputs = [ chardet dnspython html5-parser lxml namedlist sqlalchemy tornado Yapsy ];
··· 1 { lib 2 , buildPythonPackage 3 , fetchFromGitHub 4 , chardet 5 , dnspython 6 , html5-parser ··· 14 15 buildPythonPackage rec { 16 pname = "ludios_wpull"; 17 + version = "3.0.9"; 18 19 + # https://github.com/ArchiveTeam/ludios_wpull/issues/20 20 + disabled = pythonAtLeast "3.9"; 21 22 src = fetchFromGitHub { 23 rev = version; 24 owner = "ludios"; 25 repo = "wpull"; 26 + sha256 = "0j4dir0dgg8pkf4d1znicz6wyyi1wzij50r21z838cycsdr54j4c"; 27 }; 28 29 propagatedBuildInputs = [ chardet dnspython html5-parser lxml namedlist sqlalchemy tornado Yapsy ];
+12 -5
pkgs/tools/backup/grab-site/default.nix
··· 1 - { lib, python37, fetchFromGitHub }: 2 let 3 - python = python37.override { 4 self = python; 5 packageOverrides = self: super: { 6 tornado = super.tornado_4; 7 }; 8 }; ··· 10 in 11 with python.pkgs; buildPythonApplication rec { 12 pname = "grab-site"; 13 - version = "2.2.0"; 14 15 src = fetchFromGitHub { 16 rev = version; 17 owner = "ArchiveTeam"; 18 repo = "grab-site"; 19 - sha256 = "1jxcv9dral6h7vfpfqkp1yif6plj0vspzakymkj8hfl75nh0wpv8"; 20 }; 21 22 postPatch = '' 23 substituteInPlace setup.py \ 24 - --replace '"wpull @ https://github.com/ArchiveTeam/ludios_wpull/tarball/master#egg=wpull-3.0.7"' '"wpull"' 25 ''; 26 27 propagatedBuildInputs = [
··· 1 + { lib, python38, fetchFromGitHub }: 2 let 3 + python = python38.override { 4 self = python; 5 packageOverrides = self: super: { 6 + sqlalchemy = super.sqlalchemy.overridePythonAttrs (oldAttrs: rec { 7 + version = "1.3.24"; 8 + src = oldAttrs.src.override { 9 + inherit version; 10 + sha256 = "ebbb777cbf9312359b897bf81ba00dae0f5cb69fba2a18265dcc18a6f5ef7519"; 11 + }; 12 + }); 13 tornado = super.tornado_4; 14 }; 15 }; ··· 17 in 18 with python.pkgs; buildPythonApplication rec { 19 pname = "grab-site"; 20 + version = "2.2.2"; 21 22 src = fetchFromGitHub { 23 rev = version; 24 owner = "ArchiveTeam"; 25 repo = "grab-site"; 26 + sha256 = "0af53g703kqpxa6bn72mb2l5l0qrjknq5wqwl4wryyscdp4xabx4"; 27 }; 28 29 postPatch = '' 30 substituteInPlace setup.py \ 31 + --replace '"wpull @ https://github.com/ArchiveTeam/ludios_wpull/tarball/master#egg=wpull-${ludios_wpull.version}"' '"wpull"' 32 ''; 33 34 propagatedBuildInputs = [