2017-12-30 12:25:04 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-11-29 08:13:43 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
2020-06-20 17:28:34 +01:00
|
|
|
, pytest-asyncio
|
2017-12-30 12:25:04 +00:00
|
|
|
, pretend
|
|
|
|
, freezegun
|
|
|
|
, simplejson
|
2018-10-14 18:48:33 +01:00
|
|
|
, six
|
2018-10-25 16:43:07 +01:00
|
|
|
, pythonAtLeast
|
2017-12-30 12:25:04 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "structlog";
|
2022-01-14 00:59:02 +00:00
|
|
|
version = "21.5.0";
|
2021-11-29 08:13:43 +00:00
|
|
|
format = "flit";
|
2017-12-30 12:25:04 +00:00
|
|
|
|
2021-11-29 08:13:43 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hynek";
|
|
|
|
repo = "structlog";
|
|
|
|
rev = version;
|
2022-01-14 00:59:02 +00:00
|
|
|
sha256 = "0bc5lj0732j0hjq89llgrncyzs6k3aaffvg07kr3la44w0hlrb4l";
|
2017-12-30 12:25:04 +00:00
|
|
|
};
|
|
|
|
|
2018-10-14 18:48:33 +01:00
|
|
|
propagatedBuildInputs = [ six ];
|
2017-12-30 12:25:04 +00:00
|
|
|
|
2022-05-30 03:22:50 +01:00
|
|
|
checkInputs = [ pytestCheckHook pytest-asyncio pretend freezegun simplejson ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2017-12-30 12:25:04 +00:00
|
|
|
description = "Painless structural logging";
|
2021-11-29 08:13:43 +00:00
|
|
|
homepage = "https://github.com/hynek/structlog";
|
2022-05-30 03:22:50 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ ];
|
2017-12-30 12:25:04 +00:00
|
|
|
};
|
2018-01-08 15:46:40 +00:00
|
|
|
}
|