python3Packages.google_cloud_core: 1.4.1 -> 1.4.3
This commit is contained in:
parent
7cbe301ffc
commit
d1cd5b6f54
|
@ -1,26 +1,30 @@
|
|||
{ stdenv, buildPythonPackage, fetchPypi, python
|
||||
, google_api_core, grpcio, pytest, mock, setuptools }:
|
||||
{ stdenv, buildPythonPackage, fetchPypi, pythonOlder, pytestCheckHook, python
|
||||
, google_api_core, grpcio, mock }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "google-cloud-core";
|
||||
version = "1.4.1";
|
||||
version = "1.4.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "613e56f164b6bee487dd34f606083a0130f66f42f7b10f99730afdf1630df507";
|
||||
sha256 = "103bgv9d6fw01vbbdx0qxa5gqdzxqmiwlpdvibmqxkhb3c6bgbr1";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ google_api_core grpcio setuptools ];
|
||||
checkInputs = [ pytest mock ];
|
||||
disabled = pythonOlder "3.5";
|
||||
|
||||
checkPhase = ''
|
||||
cd tests
|
||||
${python.interpreter} -m unittest discover
|
||||
propagatedBuildInputs = [ google_api_core grpcio ];
|
||||
checkInputs = [ google_api_core mock pytestCheckHook ];
|
||||
|
||||
pythonImportsCheck = [ "google.cloud" ];
|
||||
|
||||
# prevent google directory from shadowing google imports
|
||||
preCheck = ''
|
||||
rm -r google
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "API Client library for Google Cloud: Core Helpers";
|
||||
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
|
||||
homepage = "https://github.com/googleapis/python-cloud-core";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue