python311Packages.structlog: disable on unsupported Python releases
This commit is contained in:
parent
d5802550f2
commit
8afaa1ae0f
1 changed files with 13 additions and 11 deletions
|
@ -1,17 +1,17 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, pythonOlder
|
|
||||||
, pytestCheckHook
|
|
||||||
, pytest-asyncio
|
|
||||||
, pretend
|
|
||||||
, freezegun
|
, freezegun
|
||||||
, hatch-fancy-pypi-readme
|
, hatch-fancy-pypi-readme
|
||||||
, hatch-vcs
|
, hatch-vcs
|
||||||
, hatchling
|
, hatchling
|
||||||
|
, pretend
|
||||||
|
, pytest-asyncio
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonAtLeast
|
||||||
|
, pythonOlder
|
||||||
, simplejson
|
, simplejson
|
||||||
, typing-extensions
|
, typing-extensions
|
||||||
, pythonAtLeast
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -19,6 +19,8 @@ buildPythonPackage rec {
|
||||||
version = "23.1.0";
|
version = "23.1.0";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "hynek";
|
owner = "hynek";
|
||||||
repo = "structlog";
|
repo = "structlog";
|
||||||
|
@ -26,22 +28,18 @@ buildPythonPackage rec {
|
||||||
hash = "sha256-0zHvBMiZB4cGntdYXA7C9V9+FfnDB6sHGuFRYAo/LJw=";
|
hash = "sha256-0zHvBMiZB4cGntdYXA7C9V9+FfnDB6sHGuFRYAo/LJw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
hatch-fancy-pypi-readme
|
hatch-fancy-pypi-readme
|
||||||
hatch-vcs
|
hatch-vcs
|
||||||
hatchling
|
hatchling
|
||||||
];
|
];
|
||||||
|
|
||||||
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
||||||
|
|
||||||
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
|
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
|
||||||
typing-extensions
|
typing-extensions
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [
|
|
||||||
"structlog"
|
|
||||||
];
|
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
freezegun
|
freezegun
|
||||||
pretend
|
pretend
|
||||||
|
@ -50,6 +48,10 @@ buildPythonPackage rec {
|
||||||
simplejson
|
simplejson
|
||||||
];
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"structlog"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Painless structural logging";
|
description = "Painless structural logging";
|
||||||
homepage = "https://github.com/hynek/structlog";
|
homepage = "https://github.com/hynek/structlog";
|
||||||
|
|
Loading…
Reference in a new issue