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