2018-11-02 20:12:41 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, google_api_core
|
|
|
|
, google_cloud_core
|
|
|
|
, pytest
|
|
|
|
, mock
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-runtimeconfig";
|
2019-10-24 07:47:33 +01:00
|
|
|
version = "0.30.0";
|
2018-11-02 20:12:41 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-24 07:47:33 +01:00
|
|
|
sha256 = "02075724535b3d6e1d9a6df8a2340190e195faea2f9e91f48d6ae9006993d636";
|
2018-11-02 20:12:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest mock ];
|
|
|
|
propagatedBuildInputs = [ google_api_core google_cloud_core ];
|
|
|
|
|
2020-03-18 22:26:52 +00:00
|
|
|
# ignore tests which require credentials or network
|
2018-11-02 20:12:41 +00:00
|
|
|
checkPhase = ''
|
2020-03-18 22:26:52 +00:00
|
|
|
rm -r google
|
|
|
|
pytest tests/unit -k 'not client and not extra_headers'
|
2018-11-02 20:12:41 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Google Cloud RuntimeConfig API client library";
|
2020-03-18 22:26:52 +00:00
|
|
|
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
|
2018-11-02 20:12:41 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|