2021-01-25 00:26:54 -08:00
|
|
|
{ lib
|
2020-02-07 04:03:39 -08:00
|
|
|
, buildPythonPackage
|
2020-05-10 06:41:44 -07:00
|
|
|
, fetchFromGitHub
|
2020-05-04 00:55:16 -07:00
|
|
|
, ruamel_yaml
|
2020-02-07 04:03:39 -08:00
|
|
|
, xmltodict
|
2020-05-04 01:01:00 -07:00
|
|
|
, pygments
|
2020-02-07 04:03:39 -08:00
|
|
|
, isPy27
|
2021-01-09 05:33:44 -08:00
|
|
|
, pytestCheckHook
|
2020-02-07 04:03:39 -08:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jc";
|
2021-02-12 06:12:17 -08:00
|
|
|
version = "1.14.3";
|
2020-02-07 04:03:39 -08:00
|
|
|
disabled = isPy27;
|
|
|
|
|
2020-05-10 06:41:44 -07:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kellyjonbrazil";
|
|
|
|
repo = "jc";
|
|
|
|
rev = "v${version}";
|
2021-02-12 06:12:17 -08:00
|
|
|
sha256 = "sha256-6ofw74onFECJYYSuZlOVcNVAVuJaJKV4pkaJ4cTrvPk=";
|
2020-02-07 04:03:39 -08:00
|
|
|
};
|
|
|
|
|
2020-05-04 01:01:00 -07:00
|
|
|
propagatedBuildInputs = [ ruamel_yaml xmltodict pygments ];
|
2020-02-07 04:03:39 -08:00
|
|
|
|
2021-01-09 05:33:44 -08:00
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2020-10-10 22:55:05 -07:00
|
|
|
description = "This tool serializes the output of popular command line tools and filetypes to structured JSON output";
|
2020-02-07 04:03:39 -08:00
|
|
|
homepage = "https://github.com/kellyjonbrazil/jc";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ atemu ];
|
|
|
|
};
|
|
|
|
}
|