1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, pythonOlder 6}: 7 8buildPythonPackage rec { 9 pname = "zipstream-ng"; 10 version = "1.7.1"; 11 format = "setuptools"; 12 13 disabled = pythonOlder "3.7"; 14 15 src = fetchFromGitHub { 16 owner = "pR0Ps"; 17 repo = "zipstream-ng"; 18 rev = "refs/tags/v${version}"; 19 hash = "sha256-BYQse+DlyLUH9CofRfGrPUZjP7E8AP/wpirvJmSRfow="; 20 }; 21 22 pythonImportsCheck = [ 23 "zipstream" 24 ]; 25 26 nativeCheckInputs = [ 27 pytestCheckHook 28 ]; 29 30 meta = with lib; { 31 description = "Library to generate streamable zip files"; 32 longDescription = '' 33 A modern and easy to use streamable zip file generator. It can package and stream many files 34 and folders on the fly without needing temporary files or excessive memory 35 ''; 36 homepage = "https://github.com/pR0Ps/zipstream-ng"; 37 changelog = "https://github.com/pR0Ps/zipstream-ng/blob/v${version}/CHANGELOG.md"; 38 license = licenses.lgpl3Only; 39 maintainers = with maintainers; [ gador ]; 40 }; 41}