anki-bin: 24.06.3 -> 24.11 (#360722)
[NixPkgs.git] / pkgs / development / python-modules / jello / default.nix
blobbd945515fff88e16616b5ef9c5279b7ff109ee89
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   installShellFiles,
6   pygments,
7   unittestCheckHook,
8 }:
10 buildPythonPackage rec {
11   pname = "jello";
12   version = "1.6.0";
13   format = "setuptools";
15   src = fetchFromGitHub {
16     owner = "kellyjonbrazil";
17     repo = "jello";
18     rev = "v${version}";
19     hash = "sha256-EN09Kcnw4HNT2roCoQyZkoHEfkM9qxqtneZPuBg46z4=";
20   };
22   nativeBuildInputs = [ installShellFiles ];
24   propagatedBuildInputs = [ pygments ];
26   nativeCheckInputs = [ unittestCheckHook ];
28   pythonImportsCheck = [ "jello" ];
30   postInstall = ''
31     installManPage man/jello.1
32   '';
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   };