1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, click
5, ansimarkup
6, cachetools
7, colorama
8, click-default-group
9, click-repl
10, dict2xml
11, jinja2
12, more-itertools
13, requests
14, six
15, pytestCheckHook
16, mock
17, pythonOlder
18}:
19
20buildPythonPackage rec {
21 pname = "greynoise";
22 version = "2.0.1";
23 format = "setuptools";
24
25 disabled = pythonOlder "3.6";
26
27 src = fetchFromGitHub {
28 owner = "GreyNoise-Intelligence";
29 repo = "pygreynoise";
30 rev = "v${version}";
31 hash = "sha256-zevom7JqXnZuotXfGtfPOmQNh32dANS4Uc6tHUuq08s=";
32 };
33
34 propagatedBuildInputs = [
35 click
36 ansimarkup
37 cachetools
38 colorama
39 click-default-group
40 click-repl
41 dict2xml
42 jinja2
43 more-itertools
44 requests
45 six
46 ];
47
48 nativeCheckInputs = [
49 pytestCheckHook
50 mock
51 ];
52
53 pythonImportsCheck = [ "greynoise" ];
54
55 meta = with lib; {
56 description = "Python3 library and command line for GreyNoise";
57 homepage = "https://github.com/GreyNoise-Intelligence/pygreynoise";
58 changelog = "https://github.com/GreyNoise-Intelligence/pygreynoise/blob/${src.rev}/CHANGELOG.rst";
59 license = licenses.mit;
60 maintainers = with maintainers; [ mbalatsko ];
61 };
62}