mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
39 lines
816 B
Nix
39 lines
816 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, pytestCheckHook
|
|
, python
|
|
, google-api-core
|
|
, grpcio
|
|
, mock
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "google-cloud-core";
|
|
version = "1.6.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "c6abb18527545379fc82efc4de75ce9a3772ccad2fc645adace593ba097cbb02";
|
|
};
|
|
|
|
propagatedBuildInputs = [ google-api-core ];
|
|
|
|
checkInputs = [ mock pytestCheckHook ];
|
|
|
|
# prevent google directory from shadowing google imports
|
|
preCheck = ''
|
|
rm -r google
|
|
'';
|
|
|
|
pythonImportsCheck = [ "google.cloud" ];
|
|
|
|
meta = with lib; {
|
|
description = "API Client library for Google Cloud: Core Helpers";
|
|
homepage = "https://github.com/googleapis/python-cloud-core";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
};
|
|
}
|