Skip to content

Commit

Permalink
Merge pull request #116181 from ju1m/mastodon-archive
Browse files Browse the repository at this point in the history
mastodon-archive: init at 1.3.1
  • Loading branch information
dotlambda authored Jun 16, 2021
2 parents 981ad7e + 0af0d5c commit d850550
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
32 changes: 32 additions & 0 deletions pkgs/tools/backup/mastodon-archive/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{ lib
, fetchFromGitHub
, python3
}:

python3.pkgs.buildPythonApplication rec {
pname = "mastodon-archive";
version = "1.3.1";

src = fetchFromGitHub {
owner = "kensanata";
repo = "mastodon-backup";
rev = "v${version}";
sha256 = "1dlrkygywxwm6xbn0pnfwd3f7641wnvxdyb5qihbsf62w1w08x8r";
};

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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13671,6 +13671,8 @@ in

massif-visualizer = libsForQt5.callPackage ../development/tools/analysis/massif-visualizer { };

mastodon-archive = callPackage ../tools/backup/mastodon-archive { };

maven = maven3;
maven3 = callPackage ../development/tools/build-managers/apache-maven { };

Expand Down

0 comments on commit d850550

Please sign in to comment.