2024-09-26 11:04:55 +00:00
|
|
|
{ lib, fetchFromGitHub, python3, stdenv }:
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "fedifetcher";
|
2024-09-26 11:04:55 +00:00
|
|
|
version = "7.1.12";
|
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-09-26 11:04:55 +00:00
|
|
|
hash = "sha256-DWex4pZV9ZVR1bqYcOpTe74ZQCQCQQxjWrv0QgtRY40=";
|
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
|
2024-09-26 11:04:55 +00:00
|
|
|
xxhash
|
2023-07-15 17:15:38 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
install -vD find_posts.py $out/bin/fedifetcher
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
checkPhase = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
|
|
|
runHook preCheck
|
|
|
|
|
|
|
|
$out/bin/fedifetcher --help>/dev/null
|
|
|
|
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
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";
|
2024-09-26 11:04:55 +00:00
|
|
|
changelog = "https://github.com/nanos/FediFetcher/releases/tag/v${version}";
|
2023-07-15 17:15:38 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|