Commit e6529f5d authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python314Packages.vbuild: migrate to finalAttrs

parent cb8762aa
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@
  pythonAtLeast,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "vbuild";
  version = "0.8.2";
  pyproject = true;
@@ -16,14 +16,14 @@ buildPythonPackage rec {
  src = fetchFromGitHub {
    owner = "manatlan";
    repo = "vbuild";
    tag = "v${version}";
    tag = "v${finalAttrs.version}";
    hash = "sha256-p9v1FiYn0cI+f/25hvjwm7eb1GqxXvNnmXBGwZe9fk0=";
  };

  postPatch = ''
    # Switch to poetry-core, patch can't be applied, https://github.com/manatlan/vbuild/pull/12
    substituteInPlace pyproject.toml \
      --replace-fail 'version = "0.0.0"' 'version = "${version}"' \
      --replace-fail 'version = "0.0.0"' 'version = "${finalAttrs.version}"' \
      --replace-fail 'requires = ["poetry>=0.12"]' 'requires = ["poetry-core>=1.0.0"]' \
      --replace-fail 'build-backend = "poetry.masonry.api"' 'build-backend = "poetry.core.masonry.api"'
    # https://github.com/manatlan/vbuild/commit/b9861bffd5d15491d5b5a4cb2a96bb71ceff0c35 is incomplete
@@ -61,8 +61,8 @@ buildPythonPackage rec {
  meta = {
    description = "Module to compile your VueJS components to standalone HTML/JS/CSS";
    homepage = "https://github.com/manatlan/vbuild";
    changelog = "https://github.com/manatlan/vbuild/blob/${src.rev}/changelog.md";
    changelog = "https://github.com/manatlan/vbuild/blob/${finalAttrs.src.rev}/changelog.md";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fab ];
  };
}
})