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

34 lines
761 B
Nix
Raw Normal View History

{ lib, stdenv
2020-02-07 13:03:39 +01:00
, buildPythonPackage
, fetchFromGitHub
2020-05-04 09:55:16 +02:00
, ruamel_yaml
2020-02-07 13:03:39 +01:00
, xmltodict
, pygments
2020-02-07 13:03:39 +01:00
, isPy27
, pytestCheckHook
2020-02-07 13:03:39 +01:00
}:
buildPythonPackage rec {
pname = "jc";
version = "1.14.1";
2020-02-07 13:03:39 +01:00
disabled = isPy27;
src = fetchFromGitHub {
owner = "kellyjonbrazil";
repo = "jc";
rev = "v${version}";
sha256 = "1vzzz7dlg6apxhcl0qkfdpp2v9d0q6jyafpfmklkcbjs31zvwcsw";
2020-02-07 13:03:39 +01:00
};
propagatedBuildInputs = [ ruamel_yaml xmltodict pygments ];
2020-02-07 13:03:39 +01:00
checkInputs = [ pytestCheckHook ];
meta = with lib; {
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 ];
};
}