pythonPacakges.google_cloud_redis: init at 0.2.0

This commit is contained in:
Chris Ostrouchov 2018-11-02 16:06:12 -04:00
parent 3c40cc5eeb
commit 2964bb840c
No known key found for this signature in database
GPG key ID: 9ED59B0AB1EAF573
2 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,37 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, enum34
, google_api_core
, pytest
}:
buildPythonPackage rec {
pname = "google-cloud-redis";
version = "0.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "c0fa00cafbce3e9a0e35fb7f9d754ac70b450b6496c62c20bb3a1f500aeca9e4";
};
checkInputs = [ pytest ];
propagatedBuildInputs = [ enum34 google_api_core ];
# requires old version of google-api-core (override)
preBuild = ''
sed -i "s/'google-api-core\[grpc\] >= 0.1.0, < 0.2.0dev'/'google-api-core'/g" setup.py
sed -i "s/google-api-core\[grpc\]<0.2.0dev,>=0.1.0/google-api-core/g" google_cloud_redis.egg-info/requires.txt
'';
checkPhase = ''
pytest tests/unit
'';
meta = with stdenv.lib; {
description = "Google Cloud Memorystore for Redis API client library";
homepage = https://github.com/GoogleCloudPlatform/google-cloud-python;
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};
}

View file

@ -2480,6 +2480,8 @@ in {
google_cloud_pubsub = callPackage ../development/python-modules/google_cloud_pubsub { };
google_cloud_redis = callPackage ../development/python-modules/google_cloud_redis { };
google_cloud_storage = callPackage ../development/python-modules/google_cloud_storage { };
google_cloud_speech = callPackage ../development/python-modules/google_cloud_speech { };