Unverified Commit e2aa42c8 authored by Philip Taron's avatar Philip Taron
Browse files

frogmouth: update from xdg to xdg-base-dirs

Steps taken:

1. Clone https://github.com/Textualize/frogmouth
2. Change xdg to xdg-base-dirs or xdg_base_dirs per https://github.com/srstevenson/xdg-base-dirs/tree/6.0.0#xdg-base-dirs
3. Update the poetry lockfile with `poetry lock`
    a. This required removing the Python 3.8 and 3.9 support in pyproject.toml
4. Generate a diff with `git diff`
5. Added this path to `pkgs/tools/text/frogmouth/default.nix`
6. Ran the resulting binary and saw that it worked.

Previously, this resulted in a stack trace where `frogmouth` was unable
to find `xdg` and could not start.
parent c895e239
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -15,6 +15,8 @@ python3.pkgs.buildPythonApplication rec {
    hash = "sha256-TMCeIwMEoNDQV9iue4XrdYQMmwofXDvdMMLTZKILQ9Q=";
  };

  patches = [ ./use-xdg-base-dirs.patch ];

  nativeBuildInputs = [
    python3.pkgs.poetry-core
    python3.pkgs.pythonRelaxDepsHook
@@ -24,13 +26,13 @@ python3.pkgs.buildPythonApplication rec {
    httpx
    textual
    typing-extensions
    xdg
    xdg-base-dirs
  ];

  pythonRelaxDeps = [
    "httpx"
    "textual"
    "xdg"
    "xdg-base-dirs"
  ];

  pythonImportsCheck = [ "frogmouth" ];
+1028 −0

File added.

Preview size limit exceeded, changes collapsed.