nixpkgs/pkgs/development/python-modules/jc/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
976 B
Nix
Raw Normal View History

{ lib
2020-02-07 12:03:39 +00:00
, buildPythonPackage
, fetchFromGitHub
, ruamel-yaml
2020-02-07 12:03:39 +00:00
, xmltodict
, pygments
, pytestCheckHook
2021-07-23 03:29:22 +00:00
, pythonOlder
2020-02-07 12:03:39 +00:00
}:
buildPythonPackage rec {
pname = "jc";
2023-01-13 13:21:40 +00:00
version = "1.22.5";
2021-07-23 03:29:22 +00:00
disabled = pythonOlder "3.6";
2020-02-07 12:03:39 +00:00
src = fetchFromGitHub {
owner = "kellyjonbrazil";
2021-07-23 03:29:22 +00:00
repo = pname;
2022-09-28 00:35:51 +00:00
rev = "refs/tags/v${version}";
2023-01-13 13:21:40 +00:00
sha256 = "sha256-ktK/s9Tt1XNIiW/Ztn4znsPXIMrScB4KAS027YqxIVM=";
2020-02-07 12:03:39 +00:00
};
propagatedBuildInputs = [ ruamel-yaml xmltodict pygments ];
2020-02-07 12:03:39 +00:00
nativeCheckInputs = [ pytestCheckHook ];
2021-07-23 03:29:22 +00:00
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";
2020-02-07 12:03:39 +00:00
homepage = "https://github.com/kellyjonbrazil/jc";
license = licenses.mit;
maintainers = with maintainers; [ atemu ];
changelog = "https://github.com/kellyjonbrazil/jc/blob/v${version}/CHANGELOG";
2020-02-07 12:03:39 +00:00
};
}