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