{
  lib,
  fetchFromGitHub,
  buildPythonPackage,
  poetry-core,
  pytestCheckHook,
  pytest-mock,
  poetry,
  writableTmpDirAsHomeHook,
}:

buildPythonPackage rec {
  pname = "poetry-plugin-up";
  version = "0.9.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "MousaZeidBaker";
    repo = "poetry-plugin-up";
    tag = "v${version}";
    hash = "sha256-gVhx8Vhk+yT/QjcEme8w0F+6BBpnEZOqzCkUJgM9eck=";
  };

  build-system = [
    poetry-core
  ];

  buildInputs = [
    poetry
  ];

  nativeCheckInputs = [
    pytestCheckHook
    pytest-mock
    writableTmpDirAsHomeHook
  ];

  disabledTests = [
    # https://github.com/MousaZeidBaker/poetry-plugin-up/issues/78
    "test_command_preserve_wildcard_project"
    "test_command_with_latest_project"
  ];

  meta = {
    description = "Poetry plugin to simplify package updates";
    homepage = "https://github.com/MousaZeidBaker/poetry-plugin-up";
    changelog = "https://github.com/MousaZeidBaker/poetry-plugin-up/releases/tag/${version}";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.k900 ];
  };
}
