2018-11-02 17:58:45 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, six
|
|
|
|
, requests
|
2019-10-15 22:55:41 +01:00
|
|
|
, setuptools
|
2018-11-02 17:58:45 +00:00
|
|
|
, pytest
|
|
|
|
, mock
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-resumable-media";
|
2019-10-16 10:43:07 +01:00
|
|
|
version = "0.3.3";
|
2018-11-02 17:58:45 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-16 10:43:07 +01:00
|
|
|
sha256 = "49493999cf046b5a02f648e201f0c2fc718c5969c53326b4d2c0693b01bdc8bb";
|
2018-11-02 17:58:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest mock ];
|
2019-10-15 22:55:41 +01:00
|
|
|
propagatedBuildInputs = [ requests setuptools six ];
|
2018-11-02 17:58:45 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test tests/unit
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.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 ];
|
|
|
|
};
|
|
|
|
}
|