1{
2 beets,
3 fetchFromGitHub,
4 lib,
5 nix-update-script,
6 python3Packages,
7}:
8python3Packages.buildPythonApplication rec {
9 pname = "beets-audible";
10 version = "1.0.2";
11 pyproject = true;
12
13 src = fetchFromGitHub {
14 owner = "Neurrone";
15 repo = "beets-audible";
16 rev = "v${version}";
17 hash = "sha256-6rf8U63SW+gwfT7ZdN/ymYKHRs0HSMDTP2ZBfULLsJs=";
18 };
19
20 nativeBuildInputs = [
21 beets
22 ];
23
24 pythonRelaxDeps = true;
25
26 build-system = with python3Packages; [
27 hatchling
28 ];
29
30 dependencies = with python3Packages; [
31 markdownify
32 natsort
33 tldextract
34 ];
35
36 passthru = {
37 updateScript = nix-update-script { };
38 };
39
40 meta = {
41 description = "Beets-audible: Organize Your Audiobook Collection With Beets";
42 homepage = "https://github.com/Neurrone/beets-audible";
43 platforms = with lib.platforms; linux ++ darwin ++ windows;
44 license = with lib.licenses; [ mit ];
45 maintainers = with lib.maintainers; [ jwillikers ];
46 };
47}