python3Packages.google_cloud_websecurityscanner: fix build

This commit is contained in:
Austin Butler 2020-11-02 17:19:58 -08:00 committed by Jonathan Ringer
parent 3a0da735d9
commit b99504f142

View file

@ -1,10 +1,5 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, google_api_core
, pytest
, mock
}:
{ stdenv, buildPythonPackage, fetchPypi, pytestCheckHook, pythonOlder
, google_api_core, libcst, mock, proto-plus, pytest-asyncio }:
buildPythonPackage rec {
pname = "google-cloud-websecurityscanner";
@ -15,16 +10,14 @@ buildPythonPackage rec {
sha256 = "1de60f880487b898b499345f46f7acf38651f5356ebca8673116003a57f25393";
};
checkInputs = [ pytest mock ];
propagatedBuildInputs = [ google_api_core ];
disabled = pythonOlder "3.6";
checkPhase = ''
pytest tests/unit
'';
checkInputs = [ mock pytest-asyncio pytestCheckHook ];
propagatedBuildInputs = [ google_api_core libcst proto-plus ];
meta = with stdenv.lib; {
description = "Google Cloud Web Security Scanner API client library";
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
homepage = "https://github.com/googleapis/python-websecurityscanner";
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};