1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 installShellFiles,
6 pygments,
7 unittestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "jello";
12 version = "1.6.0";
13 format = "setuptools";
14
15 src = fetchFromGitHub {
16 owner = "kellyjonbrazil";
17 repo = "jello";
18 rev = "v${version}";
19 hash = "sha256-EN09Kcnw4HNT2roCoQyZkoHEfkM9qxqtneZPuBg46z4=";
20 };
21
22 nativeBuildInputs = [ installShellFiles ];
23
24 propagatedBuildInputs = [ pygments ];
25
26 nativeCheckInputs = [ unittestCheckHook ];
27
28 pythonImportsCheck = [ "jello" ];
29
30 postInstall = ''
31 installManPage man/jello.1
32 '';
33
34 meta = with lib; {
35 description = "CLI tool to filter JSON and JSON Lines data with Python syntax";
36 mainProgram = "jello";
37 homepage = "https://github.com/kellyjonbrazil/jello";
38 changelog = "https://github.com/kellyjonbrazil/jello/blob/${src.rev}/CHANGELOG";
39 license = licenses.mit;
40 maintainers = with maintainers; [ figsoda ];
41 };
42}