1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
{
lib,
beets,
buildPythonPackage,
fetchFromGitHub,
httpx,
packaging,
poetry-core,
pycountry,
pytest-cov-stub,
pytestCheckHook,
rich-tables,
filelock,
writableTmpDirAsHomeHook,
nix-update-script,
beetcamp ? null, # For `passthru.tests`.
}:
let
version = "0.23.0";
in
buildPythonPackage {
pname = "beetcamp";
inherit version;
pyproject = true;
src = fetchFromGitHub {
owner = "snejus";
repo = "beetcamp";
tag = version;
hash = "sha256-8FEDpobEGZ0Lw1+JRoFIEe3AuiuX7dwsRab+P3hC3W0=";
};
patches = [
./remove-git-pytest-option.diff
];
build-system = [
poetry-core
];
dependencies = [
httpx
packaging
pycountry
];
nativeBuildInputs = [
beets
];
nativeCheckInputs = [
writableTmpDirAsHomeHook
pytestCheckHook
pytest-cov-stub
rich-tables
filelock
];
disabledTests = [
# AssertionError: assert ''
"test_get_html"
];
passthru = {
updateScript = nix-update-script { };
tests = {
beets-with-beetcamp = beets.override {
pluginOverrides = {
beetcamp = {
enable = true;
propagatedBuildInputs = [ beetcamp ];
};
};
};
};
};
meta = {
description = "Bandcamp autotagger source for beets (http://beets.io)";
homepage = "https://github.com/snejus/beetcamp";
license = lib.licenses.gpl2Only;
maintainers = [
lib.maintainers._9999years
];
mainProgram = "beetcamp";
};
}
|