32 lines
858 B
Nix
32 lines
858 B
Nix
{ stdenv, buildPythonPackage, fetchPypi, pythonOlder, pytestCheckHook, python
|
|
, google_api_core, grpcio, mock }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "google-cloud-core";
|
|
version = "1.4.3";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "21afb70c1b0bce8eeb8abb5dca63c5fd37fc8aea18f4b6d60e803bd3d27e6b80";
|
|
};
|
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
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/googleapis/python-cloud-core";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|