2021-03-13 11:03:22 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "mastodon-archive";
|
2022-11-16 15:31:38 +00:00
|
|
|
version = "1.4.2";
|
2021-03-13 11:03:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kensanata";
|
|
|
|
repo = "mastodon-backup";
|
|
|
|
rev = "v${version}";
|
2022-11-16 15:31:38 +00:00
|
|
|
hash = "sha256-b4bYQshz7mwxEfpRYV7ze4C8hz58R9cVp58wHvGFb0A=";
|
2021-03-13 11:03:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
html2text
|
|
|
|
mastodon-py
|
|
|
|
progress
|
|
|
|
];
|
|
|
|
|
|
|
|
# There is no test
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Utility for backing up your Mastodon content";
|
|
|
|
homepage = "https://alexschroeder.ch/software/Mastodon_Archive";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ julm ];
|
|
|
|
};
|
|
|
|
}
|