at master 958 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 installShellFiles, 6 pygments, 7 unittestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "jello"; 12 version = "1.6.1"; 13 format = "setuptools"; 14 15 src = fetchFromGitHub { 16 owner = "kellyjonbrazil"; 17 repo = "jello"; 18 tag = "v${version}"; 19 hash = "sha256-RAQ04R1zDL9hk1q19GSFvdkxse5rJZXpboAondOoHEc="; 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.tag}/CHANGELOG"; 39 license = licenses.mit; 40 maintainers = with maintainers; [ figsoda ]; 41 }; 42}