1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, nose
5}:
6
7buildPythonPackage rec {
8 pname = "zipstream-new";
9 version = "1.1.8";
10 format = "setuptools";
11
12 src = fetchFromGitHub {
13 owner = "arjan-s";
14 repo = "python-zipstream";
15 rev = "v${version}";
16 sha256 = "14vhgg8mcjqi8cpzrw8qzbij2fr2a63l2a8fhil21k2r8vzv92cv";
17 };
18
19 pythonImportsCheck = [
20 "zipstream"
21 ];
22
23 nativeCheckInputs = [
24 nose
25 ];
26
27 checkPhase = ''
28 runHook preCheck
29 nosetests
30 runHook postCheck
31 '';
32
33 meta = with lib; {
34 description = "Like Python's ZipFile module, except it works as a generator that provides the file in many small chunks";
35 homepage = "https://github.com/arjan-s/python-zipstream";
36 license = licenses.gpl3;
37 maintainers = with maintainers; [ hexa ];
38 };
39}