diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2023-06-09 10:02:14 +0200 |
---|---|---|
committer | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-06-11 22:18:15 +0300 |
commit | 8afaa1ae0f3f5d18a9c3c715cf990f76d9dffa36 (patch) | |
tree | ebeb548f67ba5d714e766a4f6f970166d8bf715f /pkgs | |
parent | d5802550f2abfc1f34038ac76a2aa1d2cf34c05c (diff) | |
download | nixlib-8afaa1ae0f3f5d18a9c3c715cf990f76d9dffa36.tar nixlib-8afaa1ae0f3f5d18a9c3c715cf990f76d9dffa36.tar.gz nixlib-8afaa1ae0f3f5d18a9c3c715cf990f76d9dffa36.tar.bz2 nixlib-8afaa1ae0f3f5d18a9c3c715cf990f76d9dffa36.tar.lz nixlib-8afaa1ae0f3f5d18a9c3c715cf990f76d9dffa36.tar.xz nixlib-8afaa1ae0f3f5d18a9c3c715cf990f76d9dffa36.tar.zst nixlib-8afaa1ae0f3f5d18a9c3c715cf990f76d9dffa36.zip |
python311Packages.structlog: disable on unsupported Python releases
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/structlog/default.nix | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/pkgs/development/python-modules/structlog/default.nix b/pkgs/development/python-modules/structlog/default.nix index b3783be4179e..c21785f430b6 100644 --- a/pkgs/development/python-modules/structlog/default.nix +++ b/pkgs/development/python-modules/structlog/default.nix @@ -1,17 +1,17 @@ { lib , buildPythonPackage , fetchFromGitHub -, pythonOlder -, pytestCheckHook -, pytest-asyncio -, pretend , freezegun , hatch-fancy-pypi-readme , hatch-vcs , hatchling +, pretend +, pytest-asyncio +, pytestCheckHook +, pythonAtLeast +, pythonOlder , simplejson , typing-extensions -, pythonAtLeast }: buildPythonPackage rec { @@ -19,6 +19,8 @@ buildPythonPackage rec { version = "23.1.0"; format = "pyproject"; + disabled = pythonOlder "3.7"; + src = fetchFromGitHub { owner = "hynek"; repo = "structlog"; @@ -26,22 +28,18 @@ buildPythonPackage rec { hash = "sha256-0zHvBMiZB4cGntdYXA7C9V9+FfnDB6sHGuFRYAo/LJw="; }; + SETUPTOOLS_SCM_PRETEND_VERSION = version; + nativeBuildInputs = [ hatch-fancy-pypi-readme hatch-vcs hatchling ]; - SETUPTOOLS_SCM_PRETEND_VERSION = version; - propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [ typing-extensions ]; - pythonImportsCheck = [ - "structlog" - ]; - nativeCheckInputs = [ freezegun pretend @@ -50,6 +48,10 @@ buildPythonPackage rec { simplejson ]; + pythonImportsCheck = [ + "structlog" + ]; + meta = with lib; { description = "Painless structural logging"; homepage = "https://github.com/hynek/structlog"; |