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