2018-11-02 13:43:05 -07:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, google_api_core
|
|
|
|
, pytest
|
2019-02-03 02:56:30 -08:00
|
|
|
, mock
|
2018-11-02 13:43:05 -07:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-websecurityscanner";
|
2019-01-17 07:12:59 -08:00
|
|
|
version = "0.1.1";
|
2018-11-02 13:43:05 -07:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-01-17 07:12:59 -08:00
|
|
|
sha256 = "d965d986053b49e4005b6b6cdf035d7dd4a3b64dcfb6325050b70c97831f8d6f";
|
2018-11-02 13:43:05 -07:00
|
|
|
};
|
|
|
|
|
2019-02-03 02:56:30 -08:00
|
|
|
checkInputs = [ pytest mock ];
|
2018-11-02 13:43:05 -07:00
|
|
|
propagatedBuildInputs = [ google_api_core ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest tests/unit
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Google Cloud Web Security Scanner API client library";
|
|
|
|
homepage = https://github.com/GoogleCloudPlatform/google-cloud-python;
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|