summary refs log tree commit diff
path: root/pkgs/development/python-modules/zipstream-new/default.nix
blob: 3f95fd5d4c61db33417f3d0b4b223bb475a6856e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{ lib
, buildPythonPackage
, fetchFromGitHub
, nose
}:

buildPythonPackage rec {
  pname = "zipstream-new";
  version = "1.1.8";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "arjan-s";
    repo = "python-zipstream";
    rev = "v${version}";
    sha256 = "14vhgg8mcjqi8cpzrw8qzbij2fr2a63l2a8fhil21k2r8vzv92cv";
  };

  pythonImportsCheck = [
    "zipstream"
  ];

  checkInputs = [
    nose
  ];

  checkPhase = ''
    runHook preCheck
    nosetests
    runHook postCheck
  '';

  meta = with lib; {
    description = "Like Python's ZipFile module, except it works as a generator that provides the file in many small chunks";
    homepage = "https://github.com/arjan-s/python-zipstream";
    license = licenses.gpl3;
    maintainers = with maintainers; [ hexa ];
  };
}