python3Packages.google_resumable_media,python2Packages.google_resumable_media: fix tests
This commit is contained in:
parent
2468315f2b
commit
908d8c3459
@ -1,30 +1,35 @@
|
|||||||
{ stdenv
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
|
, isPy3k
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, six
|
, six
|
||||||
, requests
|
, requests
|
||||||
, setuptools
|
, setuptools
|
||||||
, pytest
|
, pytest
|
||||||
, mock
|
, mock
|
||||||
|
, crcmod
|
||||||
|
, google-crc32c
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "google-resumable-media";
|
pname = "google-resumable-media";
|
||||||
version = "0.7.1";
|
version = "1.0.0";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "57841f5e65fb285c01071f439724745b2549a72eb75e5fd979198eb518608ed0";
|
sha256 = "FzrMa63hSApSn6KcbCcXVDri3AnULpRh/bhvOVAu/PI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ pytest mock ];
|
checkInputs = [ pytest mock ];
|
||||||
propagatedBuildInputs = [ requests setuptools six ];
|
propagatedBuildInputs = [ requests setuptools six ]
|
||||||
|
++ lib.optional isPy3k google-crc32c
|
||||||
|
++ lib.optional (!isPy3k) crcmod;
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
py.test tests/unit
|
py.test tests/unit
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with lib; {
|
||||||
description = "Utilities for Google Media Downloads and Resumable Uploads";
|
description = "Utilities for Google Media Downloads and Resumable Uploads";
|
||||||
homepage = "https://github.com/GoogleCloudPlatform/google-resumable-media-python";
|
homepage = "https://github.com/GoogleCloudPlatform/google-resumable-media-python";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user