2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-12-26 17:43:05 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
2020-06-15 15:56:04 +00:00
|
|
|
, pytest-asyncio
|
2020-04-24 23:36:52 +00:00
|
|
|
, pretend
|
|
|
|
, freezegun
|
|
|
|
, twisted
|
|
|
|
, simplejson
|
|
|
|
, six
|
|
|
|
, pythonAtLeast
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "structlog";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "21.5.0";
|
2021-12-26 17:43:05 +00:00
|
|
|
format = "flit";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-26 17:43:05 +00:00
|
|
|
# sdist is missing conftest.py
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hynek";
|
|
|
|
repo = "structlog";
|
|
|
|
rev = version;
|
2022-02-10 20:34:41 +00:00
|
|
|
sha256 = "0bc5lj0732j0hjq89llgrncyzs6k3aaffvg07kr3la44w0hlrb4l";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-26 17:43:05 +00:00
|
|
|
checkInputs = [ pytestCheckHook pytest-asyncio pretend freezegun simplejson twisted ];
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ six ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Painless structural logging";
|
2021-12-26 17:43:05 +00:00
|
|
|
homepage = "https://github.com/hynek/structlog";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = lib.licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|