2017-12-30 12:25:04 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-11-29 08:13:43 +00:00
|
|
|
, fetchFromGitHub
|
2022-07-20 01:11:00 +01:00
|
|
|
, pythonOlder
|
2021-11-29 08:13:43 +00:00
|
|
|
, pytestCheckHook
|
2020-06-20 17:28:34 +01:00
|
|
|
, pytest-asyncio
|
2017-12-30 12:25:04 +00:00
|
|
|
, pretend
|
|
|
|
, freezegun
|
2022-11-25 19:52:31 +00:00
|
|
|
, hatch-fancy-pypi-readme
|
|
|
|
, hatch-vcs
|
|
|
|
, hatchling
|
2017-12-30 12:25:04 +00:00
|
|
|
, simplejson
|
2022-07-20 01:11:00 +01:00
|
|
|
, typing-extensions
|
2018-10-25 16:43:07 +01:00
|
|
|
, pythonAtLeast
|
2017-12-30 12:25:04 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "structlog";
|
2022-11-25 19:52:31 +00:00
|
|
|
version = "22.3.0";
|
|
|
|
format = "pyproject";
|
2017-12-30 12:25:04 +00:00
|
|
|
|
2021-11-29 08:13:43 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hynek";
|
|
|
|
repo = "structlog";
|
2022-07-21 22:35:10 +01:00
|
|
|
rev = "refs/tags/${version}";
|
2022-11-25 19:52:31 +00:00
|
|
|
sha256 = "sha256-+r+M+uTXdNBWQf0TGQuZgsCXg2CBKwH8ZE2+uAe0Dzg=";
|
2017-12-30 12:25:04 +00:00
|
|
|
};
|
|
|
|
|
2022-11-25 19:52:31 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
hatch-fancy-pypi-readme
|
|
|
|
hatch-vcs
|
|
|
|
hatchling
|
|
|
|
];
|
|
|
|
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
|
2022-07-20 01:11:00 +01:00
|
|
|
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
|
|
|
|
typing-extensions
|
|
|
|
];
|
2017-12-30 12:25:04 +00:00
|
|
|
|
2022-07-20 01:11:00 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"structlog"
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
freezegun
|
|
|
|
pretend
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
simplejson
|
|
|
|
];
|
|
|
|
|
2022-05-30 03:22:50 +01:00
|
|
|
meta = with lib; {
|
2017-12-30 12:25:04 +00:00
|
|
|
description = "Painless structural logging";
|
2021-11-29 08:13:43 +00:00
|
|
|
homepage = "https://github.com/hynek/structlog";
|
2022-05-30 03:22:50 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ ];
|
2017-12-30 12:25:04 +00:00
|
|
|
};
|
2018-01-08 15:46:40 +00:00
|
|
|
}
|