{ lib, fetchFromGitHub, buildPythonPackage, # build-system hatchling, # native beets-minimal, # dependencies markdownify, natsort, tldextract, # passthru nix-update-script, }: buildPythonPackage rec { pname = "beets-audible"; version = "1.1.0"; pyproject = true; src = fetchFromGitHub { owner = "Neurrone"; repo = "beets-audible"; rev = "v${version}"; hash = "sha256-Hi/hI+zfAHwRLt8JhzL5RXEIHnSBX8oO/zuuq1HxT2s="; }; build-system = [ hatchling ]; nativeBuildInputs = [ beets-minimal ]; pythonRelaxDeps = true; dependencies = [ 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 ]; }; }