blob: a3b591db5f8e8a62f44e1cc93b546bdaa4c82891 (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pytestCheckHook
, pytest-asyncio
, pretend
, freezegun
, simplejson
, typing-extensions
, pythonAtLeast
}:
buildPythonPackage rec {
pname = "structlog";
version = "22.1.0";
format = "flit";
src = fetchFromGitHub {
owner = "hynek";
repo = "structlog";
rev = "refs/tags/${version}";
sha256 = "sha256-2sdH6iP+l+6pBNC+sjpAX8bCdCANqqkaqZRmR68uwxY=";
};
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
typing-extensions
];
pythonImportsCheck = [
"structlog"
];
checkInputs = [
freezegun
pretend
pytest-asyncio
pytestCheckHook
simplejson
];
meta = with lib; {
description = "Painless structural logging";
homepage = "https://github.com/hynek/structlog";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}
|