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";
|
2020-06-05 18:44:34 +01:00
|
|
|
version = "0.5.1";
|
2018-11-02 17:58:45 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-05 18:44:34 +01:00
|
|
|
sha256 = "97155236971970382b738921f978a6f86a7b5a0b0311703d991e065d3cb55773";
|
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";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/GoogleCloudPlatform/google-resumable-media-python";
|
2018-11-02 17:58:45 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|