2020-02-07 12:03:39 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
2020-05-10 13:41:44 +00:00
|
|
|
, fetchFromGitHub
|
2020-05-04 07:55:16 +00:00
|
|
|
, ruamel_yaml
|
2020-02-07 12:03:39 +00:00
|
|
|
, xmltodict
|
2020-05-04 08:01:00 +00:00
|
|
|
, pygments
|
2020-02-07 12:03:39 +00:00
|
|
|
, isPy27
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jc";
|
2020-05-10 13:41:44 +00:00
|
|
|
version = "1.10.10";
|
2020-02-07 12:03:39 +00:00
|
|
|
disabled = isPy27;
|
|
|
|
|
2020-05-10 13:41:44 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kellyjonbrazil";
|
|
|
|
repo = "jc";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1rkgk1d1gijic6l6rsvz5mpfhdj8l7qc60aqafj27s4yi5bbqrc7";
|
2020-02-07 12:03:39 +00:00
|
|
|
};
|
|
|
|
|
2020-05-04 08:01:00 +00:00
|
|
|
propagatedBuildInputs = [ ruamel_yaml xmltodict pygments ];
|
2020-02-07 12:03:39 +00:00
|
|
|
|
|
|
|
meta = with stdenv.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 ];
|
|
|
|
};
|
|
|
|
}
|