diff --git a/pkgs/development/python-modules/google_resumable_media/default.nix b/pkgs/development/python-modules/google_resumable_media/default.nix new file mode 100644 index 000000000000..430945e6dfdb --- /dev/null +++ b/pkgs/development/python-modules/google_resumable_media/default.nix @@ -0,0 +1,32 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, six +, requests +, pytest +, mock +}: + +buildPythonPackage rec { + pname = "google-resumable-media"; + version = "0.3.1"; + + src = fetchPypi { + inherit pname version; + sha256 = "97de518f8166d442cc0b61fab308bcd319dbb970981e667ec8ded44f5ce49836"; + }; + + checkInputs = [ pytest mock ]; + propagatedBuildInputs = [ six requests ]; + + 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 20895690169f..40d2cc357f6d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -196,7 +196,7 @@ in { astropy = callPackage ../development/python-modules/astropy { }; - astroquery = callPackage ../development/python-modules/astroquery { }; + astroquery = callPackage ../development/python-modules/astroquery { }; atom = callPackage ../development/python-modules/atom { }; @@ -2444,10 +2444,9 @@ in { google_cloud_speech = callPackage ../development/python-modules/google_cloud_speech { }; - gpgme = toPythonModule (pkgs.gpgme.override { - pythonSupport = true; - inherit (self) python; - }); + google_resumable_media = callPackage ../development/python-modules/google_resumable_media { }; + + gpgme = toPythonModule (pkgs.gpgme.override { pythonSupport=true; }); gphoto2 = callPackage ../development/python-modules/gphoto2 { inherit (pkgs) pkgconfig;