python3Packages.remarshal: use finalAttrs

This commit is contained in:
Stefan Frijters
2026-05-30 16:18:08 +02:00
parent 255175edae
commit a9b08c9f8d
@@ -21,7 +21,7 @@
pytestCheckHook,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "remarshal";
version = "1.3.0"; # test with `nix-build pkgs/pkgs-lib/format`
pyproject = true;
@@ -29,7 +29,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "remarshal-project";
repo = "remarshal";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-/K8x6ij23pk5O1+XJdFHaGbZ47nFMbXzp+4UMO5dGp4=";
};
@@ -50,11 +50,11 @@ buildPythonPackage rec {
nativeCheckInputs = [ pytestCheckHook ];
meta = {
changelog = "https://github.com/remarshal-project/remarshal/releases/tag/${src.tag}";
changelog = "https://github.com/remarshal-project/remarshal/releases/tag/${finalAttrs.src.tag}";
description = "Convert between TOML, YAML and JSON";
license = lib.licenses.mit;
homepage = "https://github.com/remarshal-project/remarshal";
maintainers = [ ];
mainProgram = "remarshal";
};
}
})