81047829ea
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
35 lines
718 B
Nix
35 lines
718 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pytest-asyncio
|
|
, pretend
|
|
, freezegun
|
|
, twisted
|
|
, simplejson
|
|
, six
|
|
, pythonAtLeast
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "structlog";
|
|
version = "21.5.0";
|
|
format = "flit";
|
|
|
|
# sdist is missing conftest.py
|
|
src = fetchFromGitHub {
|
|
owner = "hynek";
|
|
repo = "structlog";
|
|
rev = version;
|
|
sha256 = "0bc5lj0732j0hjq89llgrncyzs6k3aaffvg07kr3la44w0hlrb4l";
|
|
};
|
|
|
|
checkInputs = [ pytestCheckHook pytest-asyncio pretend freezegun simplejson twisted ];
|
|
propagatedBuildInputs = [ six ];
|
|
|
|
meta = {
|
|
description = "Painless structural logging";
|
|
homepage = "https://github.com/hynek/structlog";
|
|
license = lib.licenses.asl20;
|
|
};
|
|
}
|