2023-07-15 17:15:38 +00:00
|
|
|
{ lib, fetchFromGitHub, python3 }:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "fedifetcher";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "7.1.5";
|
2023-07-15 17:15:38 +00:00
|
|
|
format = "other";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nanos";
|
|
|
|
repo = "FediFetcher";
|
2024-04-21 15:54:59 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-dOo4QQCEGm7nZCC4k1M66wERrw+hKduvEJZIm1pEFqk=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
2023-11-16 04:20:00 +00:00
|
|
|
defusedxml
|
2023-07-15 17:15:38 +00:00
|
|
|
python-dateutil
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
install -vD find_posts.py $out/bin/fedifetcher
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Tool for Mastodon that automatically fetches missing replies and posts from other fediverse instances";
|
2023-07-15 17:15:38 +00:00
|
|
|
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";
|
|
|
|
license = licenses.mit;
|
2024-07-01 15:47:52 +00:00
|
|
|
maintainers = teams.c3d2.members;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "fedifetcher";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
}
|