at 23.05-pre 970 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, ruamel-yaml 5, xmltodict 6, pygments 7, pytestCheckHook 8, pythonOlder 9}: 10 11buildPythonPackage rec { 12 pname = "jc"; 13 version = "1.22.2"; 14 disabled = pythonOlder "3.6"; 15 16 src = fetchFromGitHub { 17 owner = "kellyjonbrazil"; 18 repo = pname; 19 rev = "refs/tags/v${version}"; 20 sha256 = "sha256-GUzBZ9NCh+70yv40WDGWxQWq0F00oMpZOPQ3Y2AiQTQ="; 21 }; 22 23 propagatedBuildInputs = [ ruamel-yaml xmltodict pygments ]; 24 25 checkInputs = [ pytestCheckHook ]; 26 27 pythonImportsCheck = [ "jc" ]; 28 29 # tests require timezone to set America/Los_Angeles 30 doCheck = false; 31 32 meta = with lib; { 33 description = "This tool serializes the output of popular command line tools and filetypes to structured JSON output"; 34 homepage = "https://github.com/kellyjonbrazil/jc"; 35 license = licenses.mit; 36 maintainers = with maintainers; [ atemu ]; 37 changelog = "https://github.com/kellyjonbrazil/jc/blob/v${version}/CHANGELOG"; 38 }; 39}