diff options
author | Maksym Balatsko <maksym.balatsko-ext@arista.com> | 2023-09-30 01:34:32 -0700 |
---|---|---|
committer | Maksym Balatsko <maksym.balatsko-ext@arista.com> | 2023-09-30 08:08:15 -0700 |
commit | b497433b56e2a418d131d82ef849a02491f19851 (patch) | |
tree | 1a4173c9411dc349d1f6eee6b2a1c5f93231e7ff /pkgs/development/python-modules/greynoise/default.nix | |
parent | 941f7fdfc06fac910d9a2744477607c4086e956d (diff) |
python3Packages.greynoise: init at 2.0.1
Diffstat (limited to 'pkgs/development/python-modules/greynoise/default.nix')
-rw-r--r-- | pkgs/development/python-modules/greynoise/default.nix | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/greynoise/default.nix b/pkgs/development/python-modules/greynoise/default.nix new file mode 100644 index 0000000000000..98247e8903ff7 --- /dev/null +++ b/pkgs/development/python-modules/greynoise/default.nix @@ -0,0 +1,62 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, click +, ansimarkup +, cachetools +, colorama +, click-default-group +, click-repl +, dict2xml +, jinja2 +, more-itertools +, requests +, six +, pytestCheckHook +, mock +, pythonOlder +}: + +buildPythonPackage rec { + pname = "greynoise"; + version = "2.0.1"; + format = "setuptools"; + + disable = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "GreyNoise-Intelligence"; + repo = "pygreynoise"; + rev = "v${version}"; + hash = "sha256-zevom7JqXnZuotXfGtfPOmQNh32dANS4Uc6tHUuq08s="; + }; + + propagatedBuildInputs = [ + click + ansimarkup + cachetools + colorama + click-default-group + click-repl + dict2xml + jinja2 + more-itertools + requests + six + ]; + + nativeCheckInputs = [ + pytestCheckHook + mock + ]; + + pythonImportsCheck = [ "greynoise" ]; + + meta = with lib; { + description = "Python3 library and command line for GreyNoise"; + homepage = "https://github.com/GreyNoise-Intelligence/pygreynoise"; + changelog = "https://github.com/GreyNoise-Intelligence/pygreynoise/blob/${src.rev}/CHANGELOG.rst"; + license = licenses.mit; + maintainers = with maintainers; [ mbalatsko ]; + }; +} |