depot/third_party/nixpkgs/pkgs/tools/misc/fedifetcher/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

39 lines
1 KiB
Nix

{ lib, fetchFromGitHub, python3 }:
python3.pkgs.buildPythonApplication rec {
pname = "fedifetcher";
version = "5.0.1";
format = "other";
src = fetchFromGitHub {
owner = "nanos";
repo = "FediFetcher";
rev = "v${version}";
hash = "sha256-O7YDxNQel1XFSjGrzdBI4PsejmzPVLvYLNF/vZgdh4w=";
};
propagatedBuildInputs = with python3.pkgs; [
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 ];
};
}