python3Packages.pyturbojpeg: use finalAttrs
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
replaceVars,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "pyturbojpeg";
|
||||
version = "2.4.0";
|
||||
pyproject = true;
|
||||
@@ -18,7 +18,7 @@ buildPythonPackage rec {
|
||||
src = fetchFromGitHub {
|
||||
owner = "lilohuang";
|
||||
repo = "PyTurboJPEG";
|
||||
tag = "v${version}";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-LgUPcRBRjqKhg0SLaZiRG8/QoJxShSvAAmQsuHwfoZM=";
|
||||
};
|
||||
|
||||
@@ -44,10 +44,10 @@ buildPythonPackage rec {
|
||||
pythonImportsCheck = [ "turbojpeg" ];
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/lilohuang/PyTurboJPEG/releases/tag/${src.tag}";
|
||||
changelog = "https://github.com/lilohuang/PyTurboJPEG/releases/tag/${finalAttrs.src.tag}";
|
||||
description = "Python wrapper of libjpeg-turbo for decoding and encoding JPEG image";
|
||||
homepage = "https://github.com/lilohuang/PyTurboJPEG";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ dotlambda ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user