567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
43 lines
926 B
Nix
43 lines
926 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
installShellFiles,
|
|
pygments,
|
|
unittestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jello";
|
|
version = "1.6.1";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kellyjonbrazil";
|
|
repo = "jello";
|
|
tag = "v${version}";
|
|
hash = "sha256-RAQ04R1zDL9hk1q19GSFvdkxse5rJZXpboAondOoHEc=";
|
|
};
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
propagatedBuildInputs = [ pygments ];
|
|
|
|
nativeCheckInputs = [ unittestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "jello" ];
|
|
|
|
postInstall = ''
|
|
installManPage man/jello.1
|
|
'';
|
|
|
|
meta = {
|
|
description = "CLI tool to filter JSON and JSON Lines data with Python syntax";
|
|
mainProgram = "jello";
|
|
homepage = "https://github.com/kellyjonbrazil/jello";
|
|
changelog = "https://github.com/kellyjonbrazil/jello/blob/${src.tag}/CHANGELOG";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|