9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
39 lines
974 B
Nix
39 lines
974 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, ruamel-yaml
|
|
, xmltodict
|
|
, pygments
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jc";
|
|
version = "1.23.3";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kellyjonbrazil";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-feD/8GLkewfVwtGRZs8YaWnb96bFICpcH6nkJmCmPgs=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ ruamel-yaml xmltodict pygments ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "jc" ];
|
|
|
|
# tests require timezone to set America/Los_Angeles
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "This tool serializes the output of popular command line tools and filetypes to structured JSON output";
|
|
homepage = "https://github.com/kellyjonbrazil/jc";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ atemu ];
|
|
changelog = "https://github.com/kellyjonbrazil/jc/blob/v${version}/CHANGELOG";
|
|
};
|
|
}
|