python311Packages.lightning-utilities: 0.11.3.post0 -> 0.11.5
Diff: https://github.com/Lightning-AI/utilities/compare/refs/tags/v0.11.3.post0...v0.11.5 Changelog: https://github.com/Lightning-AI/utilities/releases/tag/v0.11.5
This commit is contained in:
parent
a18429cc57
commit
05762d699f
@ -1,13 +1,14 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
buildPythonPackage,
|
buildPythonPackage,
|
||||||
|
pythonOlder,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
pythonAtLeast,
|
|
||||||
|
|
||||||
# build
|
# build
|
||||||
setuptools,
|
setuptools,
|
||||||
|
|
||||||
# runtime
|
# runtime
|
||||||
|
looseversion,
|
||||||
packaging,
|
packaging,
|
||||||
typing-extensions,
|
typing-extensions,
|
||||||
|
|
||||||
@ -18,19 +19,27 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "lightning-utilities";
|
pname = "lightning-utilities";
|
||||||
version = "0.11.3.post0";
|
version = "0.11.5";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.8";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "Lightning-AI";
|
owner = "Lightning-AI";
|
||||||
repo = "utilities";
|
repo = "utilities";
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-pOy8BCNwuPcM6cvUl295y+0QrcWOq2rT9iZMKyBxpqg=";
|
hash = "sha256-Ia+NF9WHU1rJHV/j3tRiqudK3TJNEolNKShFfUehxHU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace src/lightning_utilities/install/requirements.py \
|
||||||
|
--replace-fail "from distutils.version import LooseVersion" "from looseversion import LooseVersion"
|
||||||
|
'';
|
||||||
|
|
||||||
build-system = [ setuptools ];
|
build-system = [ setuptools ];
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
|
looseversion
|
||||||
packaging
|
packaging
|
||||||
typing-extensions
|
typing-extensions
|
||||||
];
|
];
|
||||||
@ -61,18 +70,11 @@ buildPythonPackage rec {
|
|||||||
"src/lightning_utilities/install/requirements.py"
|
"src/lightning_utilities/install/requirements.py"
|
||||||
];
|
];
|
||||||
|
|
||||||
pytestFlagsArray = [
|
|
||||||
# warns about distutils removal in python 3.12
|
|
||||||
"-W"
|
|
||||||
"ignore::DeprecationWarning"
|
|
||||||
];
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
changelog = "https://github.com/Lightning-AI/utilities/releases/tag/v${version}";
|
changelog = "https://github.com/Lightning-AI/utilities/releases/tag/v${version}";
|
||||||
description = "Common Python utilities and GitHub Actions in Lightning Ecosystem";
|
description = "Common Python utilities and GitHub Actions in Lightning Ecosystem";
|
||||||
homepage = "https://github.com/Lightning-AI/utilities";
|
homepage = "https://github.com/Lightning-AI/utilities";
|
||||||
license = lib.licenses.asl20;
|
license = lib.licenses.asl20;
|
||||||
maintainers = with lib.maintainers; [ GaetanLepage ];
|
maintainers = with lib.maintainers; [ GaetanLepage ];
|
||||||
broken = pythonAtLeast "3.12";
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user