about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/flowlogs-reader/default.nix
blob: 7769bdcb427b15f0a29232405710f37e8e4f1951 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{ lib
, boto3
, botocore
, buildPythonPackage
, fetchFromGitHub
, parquet
, pytestCheckHook
, python-dateutil
, pythonOlder
}:

buildPythonPackage rec {
  pname = "flowlogs-reader";
  version = "5.0.1";
  format = "setuptools";

  disabled = pythonOlder "3.6";

  src = fetchFromGitHub {
    owner = "obsrvbl";
    repo = pname;
    # https://github.com/obsrvbl/flowlogs-reader/issues/57
    rev = "refs/tags/v${version}";
    hash = "sha256-9UwCRLRKuIFRTh3ntAzlXCyN175J1wobT3GSLAhl+08=";
  };

  propagatedBuildInputs = [
    botocore
    boto3
    parquet
    python-dateutil
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "flowlogs_reader"
  ];

  meta = with lib; {
    description = "Python library to make retrieving Amazon VPC Flow Logs from CloudWatch Logs a bit easier";
    mainProgram = "flowlogs_reader";
    homepage = "https://github.com/obsrvbl/flowlogs-reader";
    license = licenses.asl20;
    maintainers = with maintainers; [ cransom ];
  };
}