Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, googleapis-common-protos 5, protobuf 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "google-cloud-audit-log"; 11 version = "0.2.5"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchPypi { 17 inherit pname version; 18 hash = "sha256-huL6ujODrcj9BKW9f9T5YLPkrtqn7ZUPL4kc4WkC62s="; 19 }; 20 21 propagatedBuildInputs = [ googleapis-common-protos protobuf ]; 22 23 # tests are a bit wonky to setup and are not very deep either 24 doCheck = false; 25 26 pythonImportsCheck = [ 27 "google.cloud.audit" 28 ]; 29 30 meta = with lib; { 31 description = "Google Cloud Audit Protos"; 32 homepage = "https://github.com/googleapis/python-audit-log"; 33 changelog = "https://github.com/googleapis/python-audit-log/blob/v${version}/CHANGELOG.md"; 34 license = licenses.asl20; 35 maintainers = with maintainers; [ SuperSandro2000 ]; 36 }; 37}