8a45d4525b
GitOrigin-RevId: 710fed5a2483f945b14f4a58af2cd3676b42d8c8
38 lines
877 B
Nix
38 lines
877 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, ruamel-yaml
|
|
, xmltodict
|
|
, pygments
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jc";
|
|
version = "1.18.6";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kellyjonbrazil";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-yk6Rg9DwilG8OWmT7SF80eYRsRwDwJp+mx2Yv2Gg+ak=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ ruamel-yaml xmltodict pygments ];
|
|
|
|
checkInputs = [ 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 ];
|
|
};
|
|
}
|