mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-10-20 04:33:19 +02:00
43 lines
1.1 KiB
Nix
43 lines
1.1 KiB
Nix
{ lib, buildPythonPackage, fetchPypi, pythonOlder, isPy27
|
|
, google_auth, protobuf, googleapis_common_protos, requests, setuptools, grpcio
|
|
, mock
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "google-api-core";
|
|
version = "1.22.1";
|
|
disabled = isPy27; # google namespace no longer works on python2
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "35cba563034d668ae90ffe1f03193a84e745b38f09592f60258358b5e5ee6238";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
googleapis_common_protos protobuf
|
|
google_auth requests setuptools grpcio
|
|
];
|
|
|
|
# requires nox
|
|
doCheck = false;
|
|
checkInputs = [ mock ];
|
|
|
|
pythonImportsCheck = [
|
|
"google.auth"
|
|
"google.protobuf"
|
|
"google.api"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Core Library for Google Client Libraries";
|
|
longDescription = ''
|
|
This library is not meant to stand-alone. Instead it defines common
|
|
helpers used by all Google API clients.
|
|
'';
|
|
homepage = "https://github.com/googleapis/python-api-core";
|
|
changelog = "https://github.com/googleapis/python-api-core/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|