diff options
Diffstat (limited to 'pkgs/development/python-modules/lightning-utilities/default.nix')
-rw-r--r-- | pkgs/development/python-modules/lightning-utilities/default.nix | 48 |
1 files changed, 25 insertions, 23 deletions
diff --git a/pkgs/development/python-modules/lightning-utilities/default.nix b/pkgs/development/python-modules/lightning-utilities/default.nix index 3af06818b8ee8..2d9ff69847724 100644 --- a/pkgs/development/python-modules/lightning-utilities/default.nix +++ b/pkgs/development/python-modules/lightning-utilities/default.nix @@ -1,43 +1,41 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonAtLeast, -# build -, setuptools + # build + setuptools, -# runtime -, packaging -, typing-extensions + # runtime + packaging, + typing-extensions, -# tests -, pytest-timeout -, pytest7CheckHook + # tests + pytest-timeout, + pytest7CheckHook, }: buildPythonPackage rec { pname = "lightning-utilities"; - version = "0.10.1"; - format = "pyproject"; + version = "0.11.2"; + pyproject = true; src = fetchFromGitHub { owner = "Lightning-AI"; repo = "utilities"; rev = "refs/tags/v${version}"; - hash = "sha256-kP7BllA9FR/nMNTxRCxmG6IJYHz/Nxqb1HoF9KxuKl8="; + hash = "sha256-IT9aRAUNc2cP2erLr0MglZSVLfDjOxg8PVIIe9AvO0o="; }; - nativeBuildInputs = [ - setuptools - ]; + build-system = [ setuptools ]; - propagatedBuildInputs = [ + dependencies = [ packaging typing-extensions ]; - pythonImportsCheck = [ - "lightning_utilities" - ]; + pythonImportsCheck = [ "lightning_utilities" ]; nativeCheckInputs = [ pytest-timeout @@ -53,6 +51,8 @@ buildPythonPackage rec { # fails another test "lightning_utilities.core.imports.ModuleAvailableCache" "lightning_utilities.core.imports.requires" + # Failed: DID NOT RAISE <class 'AssertionError'> + "test_no_warning_call" ]; disabledTestPaths = [ @@ -63,7 +63,8 @@ buildPythonPackage rec { pytestFlagsArray = [ # warns about distutils removal in python 3.12 - "-W" "ignore::DeprecationWarning" + "-W" + "ignore::DeprecationWarning" ]; meta = with lib; { @@ -71,6 +72,7 @@ buildPythonPackage rec { description = "Common Python utilities and GitHub Actions in Lightning Ecosystem"; homepage = "https://github.com/Lightning-AI/utilities"; license = licenses.asl20; - maintainers = with maintainers; [ ]; + maintainers = with maintainers; [ GaetanLepage ]; + broken = pythonAtLeast "3.12"; }; } |