pythonPackages.google_cloud_dlp: 2.0.0 -> 3.0.0

wip/yesman
Sandro Jäckel 3 years ago
parent a6dc4d5644
commit b2fb89e560
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5
  1. 32
      pkgs/development/python-modules/google_cloud_dlp/default.nix

@ -1,32 +1,42 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, enum34
, google_api_core
, pytest
, google_cloud_testutils
, libcst
, proto-plus
, pytestCheckHook
, pytest-asyncio
, mock
}:
buildPythonPackage rec {
pname = "google-cloud-dlp";
version = "2.0.0";
version = "3.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "112c8a46979eebd60c3651037e62572fed413977ff2811901aa925c7b7ab9a5a";
sha256 = "09rnzpdlycr1wv8agcfx05v1prn35ylphsbr07486zqdkh5wjk8p";
};
checkInputs = [ pytest mock ];
propagatedBuildInputs = [ enum34 google_api_core ];
propagatedBuildInputs = [ google_api_core libcst proto-plus ];
checkPhase = ''
pytest tests/unit
'';
checkInputs = [ google_cloud_testutils mock pytestCheckHook pytest-asyncio ];
disabledTests = [
# requires credentials
"test_inspect_content"
];
pythonImportsCheck = [
"google.cloud.dlp"
"google.cloud.dlp_v2"
];
meta = with stdenv.lib; {
description = "Cloud Data Loss Prevention (DLP) API API client library";
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
homepage = "https://github.com/googleapis/python-dlp";
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
maintainers = with maintainers; [ SuperSandro2000 ];
};
}

Loading…
Cancel
Save