python3Packages.pytorch-memlab: migrate to finalAttrs

This commit is contained in:
Fabian Affolter
2026-06-11 13:29:46 +02:00
committed by GitHub
parent 51144a1a0e
commit 2239b501d0
@@ -9,7 +9,7 @@
setuptools,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "pytorch-memlab";
version = "0.3.2";
pyproject = true;
@@ -17,7 +17,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "Stonesjtu";
repo = "pytorch_memlab";
tag = version;
tag = finalAttrs.version;
hash = "sha256-46C/2RvzhbHt1IHPmPCrLsIk2D3POhzuADNaXqUe0F4=";
};
@@ -42,8 +42,8 @@ buildPythonPackage rec {
meta = {
description = "Simple and accurate CUDA memory management laboratory for pytorch";
homepage = "https://github.com/Stonesjtu/pytorch_memlab";
changelog = "https://github.com/Stonesjtu/pytorch_memlab/releases/tag/${version}";
changelog = "https://github.com/Stonesjtu/pytorch_memlab/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ jherland ];
};
}
})