Unverified Commit b58e19b1 authored by Arne Keller's avatar Arne Keller Committed by GitHub
Browse files

beetsPackages.audible: init at 1.0.0 (#362827)

parents e28794fb e947089d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -57,6 +57,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 = throw "extrafiles is unmaintained since 2020 and broken since beets 2.0.0";
+45 −0
Original line number Diff line number Diff line
{
  beets,
  fetchFromGitHub,
  lib,
  nix-update-script,
  python3Packages,
}:
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=";
  };

  pythonRelaxDeps = true;

  build-system = with python3Packages; [
    hatchling
  ];

  dependencies =
    [ beets ]
    ++ (with python3Packages; [
      markdownify
      natsort
      tldextract
    ]);

  passthru = {
    updateScript = nix-update-script { };
  };

  meta = {
    description = "Beets-audible: Organize Your Audiobook Collection With Beets";
    homepage = "https://github.com/Neurrone/beets-audible";
    platforms = with lib.platforms; linux ++ darwin ++ windows;
    license = with lib.licenses; [ mit ];
    maintainers = with lib.maintainers; [ jwillikers ];
  };
}