about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/jsonformatter/default.nix
blob: f800493b2c934279ab236864bb1f19d9768f729f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ lib
, fetchFromGitHub
, buildPythonPackage
, setuptools
}:

buildPythonPackage rec {
  pname = "jsonformatter";
  version = "0.3.2";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "MyColorfulDays";
    repo = pname;
    rev = "refs/tags/v${version}";
    hash = "sha256-oK419J/MIxRT+1j/5Yklj1F+4d3wuMXR8IVqJAMKPNw=";
  };

  nativeBuildInputs = [ setuptools ];

  pythonImportsCheck = [
    "jsonformatter"
  ];

  meta = with lib; {
    description = "jsonformatter is a formatter for python output json log, e.g. output LogStash needed log";
    homepage = "https://github.com/MyColorfulDays/jsonformatter";
    license = licenses.bsd2;
    maintainers = with maintainers; [ gador ];
  };
}