blob: 5bd95004f93b317a3ae1337f60a945ae7d419577 (
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
|
{ lib
, buildPythonPackage
, isPy3k
, fetchPypi
, six
, requests
, setuptools
, pytest
, mock
, crcmod
, google-crc32c
}:
buildPythonPackage rec {
pname = "google-resumable-media";
version = "1.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "FzrMa63hSApSn6KcbCcXVDri3AnULpRh/bhvOVAu/PI=";
};
checkInputs = [ pytest mock ];
propagatedBuildInputs = [ requests setuptools six ]
++ lib.optional isPy3k google-crc32c
++ lib.optional (!isPy3k) crcmod;
checkPhase = ''
py.test tests/unit
'';
meta = with lib; {
description = "Utilities for Google Media Downloads and Resumable Uploads";
homepage = "https://github.com/GoogleCloudPlatform/google-resumable-media-python";
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};
}
|