1{ lib
2, boto3
3, botocore
4, buildPythonPackage
5, fetchFromGitHub
6, parquet
7, pytestCheckHook
8, python-dateutil
9, pythonOlder
10}:
11
12buildPythonPackage rec {
13 pname = "flowlogs-reader";
14 version = "5.0.0";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.6";
18
19 src = fetchFromGitHub {
20 owner = "obsrvbl";
21 repo = pname;
22 # https://github.com/obsrvbl/flowlogs-reader/issues/57
23 rev = "refs/tags/v${version}";
24 hash = "sha256-XHRibTSzFzWPz50elz+KdbCwTrd1DKfVMSg6UamNbzc=";
25 };
26
27 propagatedBuildInputs = [
28 botocore
29 boto3
30 parquet
31 python-dateutil
32 ];
33
34 nativeCheckInputs = [
35 pytestCheckHook
36 ];
37
38 pythonImportsCheck = [
39 "flowlogs_reader"
40 ];
41
42 meta = with lib; {
43 description = "Python library to make retrieving Amazon VPC Flow Logs from CloudWatch Logs a bit easier";
44 homepage = "https://github.com/obsrvbl/flowlogs-reader";
45 license = licenses.asl20;
46 maintainers = with maintainers; [ cransom ];
47 };
48}