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-08-16 18:31:02 +01:00
|
|
|
version = "0.7.1";
|
2018-11-02 17:58:45 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-16 18:31:02 +01:00
|
|
|
sha256 = "57841f5e65fb285c01071f439724745b2549a72eb75e5fd979198eb518608ed0";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|