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
|
{ stdenv, buildPythonPackage, fetchPypi, pythonOlder, pytestCheckHook, python
|
||||||
, google_api_core, grpcio, pytest, mock, setuptools }:
|
, google_api_core, grpcio, mock }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "google-cloud-core";
|
pname = "google-cloud-core";
|
||||||
version = "1.4.1";
|
version = "1.4.3";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "613e56f164b6bee487dd34f606083a0130f66f42f7b10f99730afdf1630df507";
|
sha256 = "103bgv9d6fw01vbbdx0qxa5gqdzxqmiwlpdvibmqxkhb3c6bgbr1";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ google_api_core grpcio setuptools ];
|
disabled = pythonOlder "3.5";
|
||||||
checkInputs = [ pytest mock ];
|
|
||||||
|
|
||||||
checkPhase = ''
|
propagatedBuildInputs = [ google_api_core grpcio ];
|
||||||
cd tests
|
checkInputs = [ google_api_core mock pytestCheckHook ];
|
||||||
${python.interpreter} -m unittest discover
|
|
||||||
|
pythonImportsCheck = [ "google.cloud" ];
|
||||||
|
|
||||||
|
# prevent google directory from shadowing google imports
|
||||||
|
preCheck = ''
|
||||||
|
rm -r google
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "API Client library for Google Cloud: Core Helpers";
|
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;
|
license = licenses.asl20;
|
||||||
maintainers = with maintainers; [ ];
|
maintainers = with maintainers; [ ];
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user