Skip to content

Commit

Permalink
beetsPackages.audible: init at 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dansbandit committed Nov 7, 2024
1 parent d25ccf9 commit c50f128
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkgs/tools/audio/beets/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ lib.makeExtensible (self: {
};

alternatives = callPackage ./plugins/alternatives.nix { beets = self.beets-minimal; };
audible = callPackage ./plugins/audible.nix { beets = self.beets-minimal; };
copyartifacts = callPackage ./plugins/copyartifacts.nix { beets = self.beets-minimal; };
extrafiles = callPackage ./plugins/extrafiles.nix { beets = self.beets-minimal; };
})
46 changes: 46 additions & 0 deletions pkgs/tools/audio/beets/plugins/audible.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
lib,
python3Packages,
fetchFromGitHub,
beets,
beetsPackages,
}:

python3Packages.buildPythonApplication rec {
pname = "beets-audible";
version = "1.0.0";
pyproject = true;

src = fetchFromGitHub {
owner = "Neurrone";
repo = "beets-audible";
rev = "v${version}";
hash = "sha256-m955KPtYfjmtm9kHhkZLWoMYzVq0THOwvKCJYiVna7k=";
};

build-system = with python3Packages; [ hatchling ];

dependencies = with python3Packages; [
beets
beetsPackages.copyartifacts
markdownify
natsort
tldextract
];

pythonImportsCheck = [
"beetsplug.api"
"beetsplug.audible"
"beetsplug.book"
"beetsplug.goodreads"
];

meta = {
description = "Beets plugin to manage audiobook collections";
homepage = "https://github.com/Neurrone/beets-audible";
changelog = "https://github.com/Neurrone/beets-audible/blob/v${version}/CHANGELOG.md";
maintainers = with lib.maintainers; [ dansbandit ];
license = lib.licenses.mit;
inherit (beets.meta) platforms;
};
}

0 comments on commit c50f128

Please sign in to comment.