1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, requests 5, tabulate 6, pytestCheckHook 7, requests-mock 8}: 9 10buildPythonPackage { 11 pname = "remotezip"; 12 version = "0.12.1"; 13 format = "setuptools"; 14 15 src = fetchFromGitHub { 16 owner = "gtsystem"; 17 repo = "python-remotezip"; 18 # upstream does not tag releases, determined with git blame 19 # pypi archive lacks files for tests 20 rev = "da62e115bdb2071ad08a8c91f7ae48f2c1827e0c"; 21 hash = "sha256-su4dlV8KZuewf/yGdTnGHK9hNLHwGe10ditmFcne4Us="; 22 }; 23 24 propagatedBuildInputs = [ 25 requests 26 tabulate 27 ]; 28 29 nativeCheckInputs = [ 30 pytestCheckHook 31 ]; 32 33 checkInputs = [ 34 requests-mock 35 ]; 36 37 pythonImportsCheck = [ 38 "remotezip" 39 ]; 40 41 meta = with lib; { 42 description = "Python module to access single members of a zip archive without downloading the full content"; 43 homepage = "https://github.com/gtsystem/python-remotezip"; 44 license = licenses.mit; 45 maintainers = with maintainers; [ nickcao ]; 46 }; 47}