Unverified Commit f7cb58ec authored by Zev Isert's avatar Zev Isert Committed by Zev Isert
Browse files

poetryPlugins.poetry-plugin-migrate: init at 0.1.1



Poetry 2 is the latest version of poetry in nixpkgs-unstable, so
this plugin will likely be widely used as poetry users adopt the new
major version of poetry.

Co-authored-by: default avatarqzylinra <qzylinra@users.noreply.github.com>
Co-authored-by: dotlambda <dotlambda @users.noreply.github.com>
parent b92a8ddb
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -40,6 +40,7 @@ let
      poetry-audit-plugin = callPackage ./plugins/poetry-audit-plugin.nix { };
      poetry-plugin-export = callPackage ./plugins/poetry-plugin-export.nix { };
      poetry-plugin-up = callPackage ./plugins/poetry-plugin-up.nix { };
      poetry-plugin-migrate = callPackage ./plugins/poetry-plugin-migrate.nix { };
      poetry-plugin-poeblix = callPackage ./plugins/poetry-plugin-poeblix.nix { };
      poetry-plugin-shell = callPackage ./plugins/poetry-plugin-shell.nix { };
    };
+44 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  poetry-core,
  poetry,
  pytest-mock,
  pytestCheckHook,
}:
buildPythonPackage rec {
  pname = "poetry-plugin-migrate";
  version = "0.1.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "zyf722";
    repo = "poetry-plugin-migrate";
    tag = version;
    hash = "sha256-78H4/vHp8W7h6v6OWUdx9pX4142YiNGUFZXHoxxXw1M=";
  };

  build-system = [
    poetry-core
  ];

  buildInputs = [
    poetry
  ];

  pythonImportsCheck = [ "poetry_plugin_migrate" ];

  nativeCheckInputs = [
    pytest-mock
    pytestCheckHook
  ];

  meta = {
    description = "Poetry plugin to migrate pyproject.toml from Poetry v1 to v2 (PEP-621 compliant)";
    homepage = "https://github.com/zyf722/poetry-plugin-migrate";
    changelog = "https://github.com/zyf722/poetry-plugin-migrate/releases/tag/${src.tag}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ zevisert ];
  };
}