Skip to content

Commit

Permalink
python3Packages.google_resumable_media,python2Packages.google_resumab…
Browse files Browse the repository at this point in the history
…le_media: fix tests
  • Loading branch information
freezeboy authored and Jon committed Sep 23, 2020
1 parent 2468315 commit 908d8c3
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions pkgs/development/python-modules/google_resumable_media/default.nix
Original file line number Diff line number Diff line change
@@ -1,30 +1,35 @@
{ stdenv
{ lib
, buildPythonPackage
, isPy3k
, fetchPypi
, six
, requests
, setuptools
, pytest
, mock
, crcmod
, google-crc32c
}:

buildPythonPackage rec {
pname = "google-resumable-media";
version = "0.7.1";
version = "1.0.0";

src = fetchPypi {
inherit pname version;
sha256 = "57841f5e65fb285c01071f439724745b2549a72eb75e5fd979198eb518608ed0";
sha256 = "FzrMa63hSApSn6KcbCcXVDri3AnULpRh/bhvOVAu/PI=";
};

checkInputs = [ pytest mock ];
propagatedBuildInputs = [ requests setuptools six ];
propagatedBuildInputs = [ requests setuptools six ]
++ lib.optional isPy3k google-crc32c
++ lib.optional (!isPy3k) crcmod;

checkPhase = ''
py.test tests/unit
'';

meta = with stdenv.lib; {
meta = with lib; {
description = "Utilities for Google Media Downloads and Resumable Uploads";
homepage = "https://github.com/GoogleCloudPlatform/google-resumable-media-python";
license = licenses.asl20;
Expand Down

0 comments on commit 908d8c3

Please sign in to comment.