python3Packages.jsonformatter: init at 0.3.2
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
This commit is contained in:
parent
272ba9d42a
commit
2aaaa26710
2 changed files with 33 additions and 0 deletions
31
pkgs/development/python-modules/jsonformatter/default.nix
Normal file
31
pkgs/development/python-modules/jsonformatter/default.nix
Normal file
|
@ -0,0 +1,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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -6015,6 +6015,8 @@ self: super: with self; {
|
||||||
|
|
||||||
jsonable = callPackage ../development/python-modules/jsonable { };
|
jsonable = callPackage ../development/python-modules/jsonable { };
|
||||||
|
|
||||||
|
jsonformatter = callPackage ../development/python-modules/jsonformatter { };
|
||||||
|
|
||||||
jsonnet = buildPythonPackage { inherit (pkgs.jsonnet) name src; };
|
jsonnet = buildPythonPackage { inherit (pkgs.jsonnet) name src; };
|
||||||
|
|
||||||
jsonpatch = callPackage ../development/python-modules/jsonpatch { };
|
jsonpatch = callPackage ../development/python-modules/jsonpatch { };
|
||||||
|
|
Loading…
Reference in a new issue