Skip to content

Commit

Permalink
fedifetcher: check if all requirements are there
Browse files Browse the repository at this point in the history
Until we have a proper wheel, we can check with that if all deps are
there.

nanos/FediFetcher#177
  • Loading branch information
SuperSandro2000 authored and github-actions[bot] committed Dec 23, 2024
1 parent bce88e2 commit 4d6d20e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkgs/tools/misc/fedifetcher/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
lib,
fetchFromGitHub,
python3,
stdenv,
}:

python3.pkgs.buildPythonApplication rec {
Expand Down Expand Up @@ -30,6 +31,14 @@ python3.pkgs.buildPythonApplication rec {
runHook postInstall
'';

checkPhase = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
runHook preCheck
$out/bin/fedifetcher --help>/dev/null
runHook postCheck
'';

meta = with lib; {
description = "A tool for Mastodon that automatically fetches missing replies and posts from other fediverse instances";
longDescription = ''
Expand Down

0 comments on commit 4d6d20e

Please sign in to comment.