pythonPackages.google_cloud_trace: Fix depedencies, cleanups
This commit is contained in:
parent
03742dfbca
commit
e8bf3efd42
@ -3,8 +3,11 @@
|
|||||||
, fetchPypi
|
, fetchPypi
|
||||||
, google_api_core
|
, google_api_core
|
||||||
, google_cloud_core
|
, google_cloud_core
|
||||||
, pytest
|
, google_cloud_testutils
|
||||||
, mock
|
, mock
|
||||||
|
, proto-plus
|
||||||
|
, pytestCheckHook
|
||||||
|
, pytest-asyncio
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -13,20 +16,29 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "1bd1ee5c274a584929913d9118134e01afe106644cb749ccc3111e1a38a96cd3";
|
sha256 = "1lvcm4w1l7hiqg64kdscch3f3bq19q9ii49xj4lljn2a4xffxl8v";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ pytest mock ];
|
propagatedBuildInputs = [ google_api_core google_cloud_core proto-plus ];
|
||||||
propagatedBuildInputs = [ google_api_core google_cloud_core ];
|
|
||||||
|
|
||||||
checkPhase = ''
|
checkInputs = [ google_cloud_testutils mock pytestCheckHook pytest-asyncio ];
|
||||||
pytest tests/unit
|
|
||||||
'';
|
disabledTests = [
|
||||||
|
# require credentials
|
||||||
|
"test_batch_write_spans"
|
||||||
|
"test_list_traces"
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"google.cloud.trace"
|
||||||
|
"google.cloud.trace_v1"
|
||||||
|
"google.cloud.trace_v2"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Stackdriver Trace API client library";
|
description = "Cloud Trace API client library";
|
||||||
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
|
homepage = "https://github.com/googleapis/python-trace";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = [ maintainers.costrouc ];
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user