1{ stdenv
2, buildPythonPackage
3, fetchFromGitHub
4, ruamel_yaml
5, xmltodict
6, pygments
7, isPy27
8}:
9
10buildPythonPackage rec {
11 pname = "jc";
12 version = "1.13.4";
13 disabled = isPy27;
14
15 src = fetchFromGitHub {
16 owner = "kellyjonbrazil";
17 repo = "jc";
18 rev = "v${version}";
19 sha256 = "0rwvyyrdnw43pixp8h51rncq2inc9pbbj1j2191y5si00pjw34zr";
20 };
21
22 propagatedBuildInputs = [ ruamel_yaml xmltodict pygments ];
23
24 meta = with stdenv.lib; {
25 description = "This tool serializes the output of popular command line tools and filetypes to structured JSON output.";
26 homepage = "https://github.com/kellyjonbrazil/jc";
27 license = licenses.mit;
28 maintainers = with maintainers; [ atemu ];
29 };
30}