depot/third_party/nixpkgs/pkgs/development/python-modules/greynoise/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

64 lines
1.2 KiB
Nix

{
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.2.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "GreyNoise-Intelligence";
repo = "pygreynoise";
rev = "refs/tags/v${version}";
hash = "sha256-jsLvq0GndprdYL5mxHDRtZmNkeKT/rIV+dAnRPEmsV8=";
};
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";
mainProgram = "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 ];
};
}