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

39 lines
877 B
Nix
Raw Normal View History

{ lib
2020-02-07 12:03:39 +00:00
, buildPythonPackage
, fetchFromGitHub
2020-05-04 07:55:16 +00:00
, 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";
2021-07-23 03:29:22 +00:00
version = "1.16.0";
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;
rev = "v${version}";
2021-07-23 03:29:22 +00:00
sha256 = "sha256-6kh9FzMW5davxN8jNFFUh+PGSNAW7w8aeoJP25mGY10=";
2020-02-07 12:03:39 +00:00
};
propagatedBuildInputs = [ ruamel_yaml xmltodict pygments ];
2020-02-07 12:03:39 +00:00
checkInputs = [ 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 ];
};
}