2021-01-25 09:26:54 +01:00
|
|
|
{ lib
|
2020-02-07 13:03:39 +01:00
|
|
|
, buildPythonPackage
|
2020-05-10 15:41:44 +02:00
|
|
|
, fetchFromGitHub
|
2021-11-01 21:59:40 +01:00
|
|
|
, ruamel-yaml
|
2020-02-07 13:03:39 +01:00
|
|
|
, xmltodict
|
2020-05-04 10:01:00 +02:00
|
|
|
, pygments
|
2021-01-09 14:33:44 +01:00
|
|
|
, pytestCheckHook
|
2021-07-23 05:29:22 +02:00
|
|
|
, pythonOlder
|
2020-02-07 13:03:39 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jc";
|
2021-12-06 16:06:33 +01:00
|
|
|
version = "1.17.3";
|
2021-07-23 05:29:22 +02:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-02-07 13:03:39 +01:00
|
|
|
|
2020-05-10 15:41:44 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kellyjonbrazil";
|
2021-07-23 05:29:22 +02:00
|
|
|
repo = pname;
|
2020-05-10 15:41:44 +02:00
|
|
|
rev = "v${version}";
|
2021-12-06 16:06:33 +01:00
|
|
|
sha256 = "sha256-LoefoKrYZF0REF3EEd9/rxd5VQfpU+lYX/siRlQw00o=";
|
2020-02-07 13:03:39 +01:00
|
|
|
};
|
|
|
|
|
2021-11-01 21:59:40 +01:00
|
|
|
propagatedBuildInputs = [ ruamel-yaml xmltodict pygments ];
|
2020-02-07 13:03:39 +01:00
|
|
|
|
2021-01-09 14:33:44 +01:00
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
|
2021-07-23 05:29:22 +02:00
|
|
|
pythonImportsCheck = [ "jc" ];
|
|
|
|
|
|
|
|
# tests require timezone to set America/Los_Angeles
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-10-11 07:55:05 +02:00
|
|
|
description = "This tool serializes the output of popular command line tools and filetypes to structured JSON output";
|
2020-02-07 13:03:39 +01:00
|
|
|
homepage = "https://github.com/kellyjonbrazil/jc";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ atemu ];
|
|
|
|
};
|
|
|
|
}
|