Loading pkgs/development/python-modules/structlog/default.nix +13 −11 Original line number Diff line number Diff line { 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 { Loading @@ -19,6 +19,8 @@ buildPythonPackage rec { version = "23.1.0"; format = "pyproject"; disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "hynek"; repo = "structlog"; Loading @@ -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 Loading @@ -50,6 +48,10 @@ buildPythonPackage rec { simplejson ]; pythonImportsCheck = [ "structlog" ]; meta = with lib; { description = "Painless structural logging"; homepage = "https://github.com/hynek/structlog"; Loading Loading
pkgs/development/python-modules/structlog/default.nix +13 −11 Original line number Diff line number Diff line { 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 { Loading @@ -19,6 +19,8 @@ buildPythonPackage rec { version = "23.1.0"; format = "pyproject"; disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "hynek"; repo = "structlog"; Loading @@ -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 Loading @@ -50,6 +48,10 @@ buildPythonPackage rec { simplejson ]; pythonImportsCheck = [ "structlog" ]; meta = with lib; { description = "Painless structural logging"; homepage = "https://github.com/hynek/structlog"; Loading