Fernando Rodrigues 05580f4b44
treewide: switch instances of lib.teams.*.members to the new meta.teams attribute
Follow-up to #394797.

Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
2025-04-25 22:20:17 -03:00

57 lines
1.3 KiB
Nix

{
lib,
fetchFromGitHub,
python3,
stdenv,
}:
python3.pkgs.buildPythonApplication rec {
pname = "fedifetcher";
version = "7.1.16";
format = "other";
src = fetchFromGitHub {
owner = "nanos";
repo = "FediFetcher";
tag = "v${version}";
hash = "sha256-8eSzXstOOEx+yzwjcSgQfv8c0d+1gsVemzGG/U1TWEo=";
};
propagatedBuildInputs = with python3.pkgs; [
defusedxml
python-dateutil
requests
xxhash
];
installPhase = ''
runHook preInstall
install -vD find_posts.py $out/bin/fedifetcher
runHook postInstall
'';
checkPhase = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
runHook preCheck
$out/bin/fedifetcher --help>/dev/null
runHook postCheck
'';
meta = with lib; {
description = "Tool for Mastodon that automatically fetches missing replies and posts from other fediverse instances";
longDescription = ''
FediFetcher is a tool for Mastodon that automatically fetches missing
replies and posts from other fediverse instances, and adds them to your
own Mastodon instance.
'';
homepage = "https://blog.thms.uk/fedifetcher";
changelog = "https://github.com/nanos/FediFetcher/releases/tag/${src.tag}";
license = licenses.mit;
teams = [ teams.c3d2 ];
mainProgram = "fedifetcher";
};
}