nixpkgs/pkgs/development/python-modules/jc/default.nix
2023-01-13 16:21:40 +03:00

39 lines
970 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, ruamel-yaml
, xmltodict
, pygments
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "jc";
version = "1.22.5";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "kellyjonbrazil";
repo = pname;
rev = "refs/tags/v${version}";
sha256 = "sha256-ktK/s9Tt1XNIiW/Ztn4znsPXIMrScB4KAS027YqxIVM=";
};
propagatedBuildInputs = [ ruamel-yaml xmltodict pygments ];
checkInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "jc" ];
# tests require timezone to set America/Los_Angeles
doCheck = false;
meta = with 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 ];
changelog = "https://github.com/kellyjonbrazil/jc/blob/v${version}/CHANGELOG";
};
}