60f07311b9
GitOrigin-RevId: f8e2ebd66d097614d51a56a755450d4ae1632df1
41 lines
1 KiB
Nix
41 lines
1 KiB
Nix
{ lib, fetchFromGitHub, python3 }:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "fedifetcher";
|
|
version = "7.0.3";
|
|
format = "other";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nanos";
|
|
repo = "FediFetcher";
|
|
rev = "v${version}";
|
|
hash = "sha256-ADf6ZVqO9v6GQbNWi3NDX5bNmFDX5LMJfM6ePEWwbrQ=";
|
|
};
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
defusedxml
|
|
python-dateutil
|
|
requests
|
|
];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -vD find_posts.py $out/bin/fedifetcher
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A 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";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ delroth ];
|
|
mainProgram = "fedifetcher";
|
|
};
|
|
}
|