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