2018-11-02 19:13:44 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-01-06 09:46:48 +00:00
|
|
|
, google-api-core
|
|
|
|
, google-cloud-testutils
|
2021-01-05 10:06:37 +00:00
|
|
|
, libcst
|
|
|
|
, proto-plus
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-asyncio
|
2019-02-03 10:56:30 +00:00
|
|
|
, mock
|
2018-11-02 19:13:44 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-dlp";
|
2021-01-05 10:06:37 +00:00
|
|
|
version = "3.0.0";
|
2018-11-02 19:13:44 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-01-05 10:06:37 +00:00
|
|
|
sha256 = "09rnzpdlycr1wv8agcfx05v1prn35ylphsbr07486zqdkh5wjk8p";
|
2018-11-02 19:13:44 +00:00
|
|
|
};
|
|
|
|
|
2021-01-06 09:46:48 +00:00
|
|
|
propagatedBuildInputs = [ google-api-core libcst proto-plus ];
|
2018-11-02 19:13:44 +00:00
|
|
|
|
2021-01-06 09:46:48 +00:00
|
|
|
checkInputs = [ google-cloud-testutils mock pytestCheckHook pytest-asyncio ];
|
2021-01-05 10:06:37 +00:00
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# requires credentials
|
|
|
|
"test_inspect_content"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"google.cloud.dlp"
|
|
|
|
"google.cloud.dlp_v2"
|
|
|
|
];
|
2018-11-02 19:13:44 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Cloud Data Loss Prevention (DLP) API API client library";
|
2021-01-05 10:06:37 +00:00
|
|
|
homepage = "https://github.com/googleapis/python-dlp";
|
2018-11-02 19:13:44 +00:00
|
|
|
license = licenses.asl20;
|
2021-01-05 10:06:37 +00:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2018-11-02 19:13:44 +00:00
|
|
|
};
|
|
|
|
}
|