beetsPackages.audible: init at 1.0.0 (#362827)

authored by Arne Keller and committed by GitHub b58e19b1 e28794fb

+46
+1
pkgs/tools/audio/beets/default.nix
··· 57 57 }; 58 58 59 59 alternatives = callPackage ./plugins/alternatives.nix { beets = self.beets-minimal; }; 60 + audible = callPackage ./plugins/audible.nix { beets = self.beets-minimal; }; 60 61 copyartifacts = callPackage ./plugins/copyartifacts.nix { beets = self.beets-minimal; }; 61 62 62 63 extrafiles = throw "extrafiles is unmaintained since 2020 and broken since beets 2.0.0";
+45
pkgs/tools/audio/beets/plugins/audible.nix
··· 1 + { 2 + beets, 3 + fetchFromGitHub, 4 + lib, 5 + nix-update-script, 6 + python3Packages, 7 + }: 8 + python3Packages.buildPythonApplication rec { 9 + pname = "beets-audible"; 10 + version = "1.0.0"; 11 + pyproject = true; 12 + 13 + src = fetchFromGitHub { 14 + owner = "Neurrone"; 15 + repo = "beets-audible"; 16 + rev = "v${version}"; 17 + hash = "sha256-m955KPtYfjmtm9kHhkZLWoMYzVq0THOwvKCJYiVna7k="; 18 + }; 19 + 20 + pythonRelaxDeps = true; 21 + 22 + build-system = with python3Packages; [ 23 + hatchling 24 + ]; 25 + 26 + dependencies = 27 + [ beets ] 28 + ++ (with python3Packages; [ 29 + markdownify 30 + natsort 31 + tldextract 32 + ]); 33 + 34 + passthru = { 35 + updateScript = nix-update-script { }; 36 + }; 37 + 38 + meta = { 39 + description = "Beets-audible: Organize Your Audiobook Collection With Beets"; 40 + homepage = "https://github.com/Neurrone/beets-audible"; 41 + platforms = with lib.platforms; linux ++ darwin ++ windows; 42 + license = with lib.licenses; [ mit ]; 43 + maintainers = with lib.maintainers; [ jwillikers ]; 44 + }; 45 + }