Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / jello / default.nix
blob0b2d6cff788249776c203d198f12687c17d6aeb7
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , installShellFiles
5 , pygments
6 , unittestCheckHook
7 }:
9 buildPythonPackage rec {
10   pname = "jello";
11   version = "1.6.0";
12   format = "setuptools";
14   src = fetchFromGitHub {
15     owner = "kellyjonbrazil";
16     repo = "jello";
17     rev = "v${version}";
18     hash = "sha256-EN09Kcnw4HNT2roCoQyZkoHEfkM9qxqtneZPuBg46z4=";
19   };
21   nativeBuildInputs = [
22     installShellFiles
23   ];
25   propagatedBuildInputs = [
26     pygments
27   ];
29   nativeCheckInputs = [
30     unittestCheckHook
31   ];
33   pythonImportsCheck = [ "jello" ];
35   postInstall = ''
36     installManPage man/jello.1
37   '';
39   meta = with lib; {
40     description = "CLI tool to filter JSON and JSON Lines data with Python syntax";
41     mainProgram = "jello";
42     homepage = "https://github.com/kellyjonbrazil/jello";
43     changelog = "https://github.com/kellyjonbrazil/jello/blob/${src.rev}/CHANGELOG";
44     license = licenses.mit;
45     maintainers = with maintainers; [ figsoda ];
46   };