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 Sep 25, 2024
1 parent 84ecb48 commit 46cc453
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pkgs/tools/misc/fedifetcher/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, fetchFromGitHub, python3 }:
{ lib, fetchFromGitHub, python3, stdenv }:

python3.pkgs.buildPythonApplication rec {
pname = "fedifetcher";
Expand Down Expand Up @@ -26,6 +26,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 46cc453

Please sign in to comment.