2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
freezegun,
|
|
|
|
hatch-fancy-pypi-readme,
|
|
|
|
hatch-vcs,
|
|
|
|
hatchling,
|
|
|
|
pretend,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
simplejson,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "structlog";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "24.4.0";
|
2024-02-29 20:09:43 +00:00
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2021-12-26 17:43:05 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hynek";
|
|
|
|
repo = "structlog";
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-z3ecgsep/BQJ+Fv78rV4XiFU4+1aaUEfNEtIqy44KV4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
build-system = [
|
2022-12-02 08:20:57 +00:00
|
|
|
hatch-fancy-pypi-readme
|
|
|
|
hatch-vcs
|
|
|
|
hatchling
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-08-12 12:06:08 +00:00
|
|
|
freezegun
|
|
|
|
pretend
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
simplejson
|
2024-01-13 08:15:51 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "structlog" ];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Painless structural logging";
|
2021-12-26 17:43:05 +00:00
|
|
|
homepage = "https://github.com/hynek/structlog";
|
2023-07-15 17:15:38 +00:00
|
|
|
changelog = "https://github.com/hynek/structlog/blob/${version}/CHANGELOG.md";
|
2022-06-16 17:23:12 +00:00
|
|
|
license = licenses.asl20;
|
2024-02-29 20:09:43 +00:00
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|