Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / structlog / default.nix
bloba6c826a00a5e00060f32500dfc3557f6df3f4ac6
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , freezegun
5 , hatch-fancy-pypi-readme
6 , hatch-vcs
7 , hatchling
8 , pretend
9 , pytest-asyncio
10 , pytestCheckHook
11 , pythonOlder
12 , simplejson
13 , twisted
16 buildPythonPackage rec {
17   pname = "structlog";
18   version = "24.1.0";
19   pyproject = true;
21   disabled = pythonOlder "3.8";
23   src = fetchFromGitHub {
24     owner = "hynek";
25     repo = "structlog";
26     rev = "refs/tags/${version}";
27     hash = "sha256-0Yc28UEeozK2+IqILFTqHoTiM5L2SA4t6jld4qTBSzQ=";
28   };
30   nativeBuildInputs = [
31     hatch-fancy-pypi-readme
32     hatch-vcs
33     hatchling
34   ];
36   nativeCheckInputs = [
37     freezegun
38     pretend
39     pytest-asyncio
40     pytestCheckHook
41     simplejson
42     twisted
43   ];
45   pythonImportsCheck = [
46     "structlog"
47   ];
49   meta = with lib; {
50     description = "Painless structural logging";
51     homepage = "https://github.com/hynek/structlog";
52     changelog = "https://github.com/hynek/structlog/blob/${version}/CHANGELOG.md";
53     license = licenses.asl20;
54     maintainers = with maintainers; [ dotlambda ];
55   };