Something went wrong. Try again.
lol
Something went wrong. Try again.
1.4 kB · 79 lines
Nix
at master
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980{ lib, buildPythonPackage, fetchFromGitHub, click, ansimarkup, cachetools, colorama, click-default-group, click-repl, dict2xml, hatchling, jinja2, more-itertools, requests, six, pytestCheckHook, mock, # The REPL depends on click-repl, which is incompatible with our version of # click. withRepl ? false,}:
buildPythonPackage rec { pname = "greynoise"; version = "3.0.2"; pyproject = true;
src = fetchFromGitHub { owner = "GreyNoise-Intelligence"; repo = "pygreynoise"; tag = "v${version}"; hash = "sha256-CP+Fx3Gu6pQWnX/WjJ+qq7TK9onatVHp0ghu33WU7X4="; };
patches = lib.optionals (!withRepl) [ ./remove-repl.patch ];
build-system = [ hatchling ];
pythonRelaxDeps = [ "click" ];
dependencies = [ click ansimarkup cachetools colorama click-default-group dict2xml jinja2 more-itertools requests six ] ++ lib.optionals withRepl [ click-repl ];
nativeCheckInputs = [ pytestCheckHook mock ];
pythonImportsCheck = [ "greynoise" ];
meta = { 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.tag}/CHANGELOG.rst"; license = lib.licenses.mit; maintainers = [ ]; };}