Merge pull request #263241 from philiptaron/frogmouth

frogmouth: update from xdg to xdg-base-dirs

authored by figsoda and committed by GitHub 23e72d38 4df6cc87

+9 -2
+9 -2
pkgs/tools/text/frogmouth/default.nix
··· 15 15 hash = "sha256-TMCeIwMEoNDQV9iue4XrdYQMmwofXDvdMMLTZKILQ9Q="; 16 16 }; 17 17 18 + # Per <https://github.com/srstevenson/xdg-base-dirs/tree/6.0.0#xdg-base-dirs>, the package is 19 + # renamed from `xdg` to `xdg_base_dirs`, but upstream isn't amenable to performing that rename. 20 + # See <https://github.com/Textualize/frogmouth/pull/59>. So this is a minimal fix. 21 + postUnpack = '' 22 + sed -i -e "s,from xdg import,from xdg_base_dirs import," $sourceRoot/frogmouth/data/{config,data_directory}.py 23 + ''; 24 + 18 25 nativeBuildInputs = [ 19 26 python3.pkgs.poetry-core 20 27 python3.pkgs.pythonRelaxDepsHook ··· 24 31 httpx 25 32 textual 26 33 typing-extensions 27 - xdg 34 + xdg-base-dirs 28 35 ]; 29 36 30 37 pythonRelaxDeps = [ 31 38 "httpx" 32 39 "textual" 33 - "xdg" 40 + "xdg-base-dirs" 34 41 ]; 35 42 36 43 pythonImportsCheck = [ "frogmouth" ];