beetcamp: move beets dependency to nativeBuildInputs (#473678)
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
filelock,
|
||||
writableTmpDirAsHomeHook,
|
||||
nix-update-script,
|
||||
beetcamp ? null, # For `passthru.tests`.
|
||||
}:
|
||||
|
||||
let
|
||||
@@ -39,12 +40,15 @@ buildPythonPackage {
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
beets
|
||||
httpx
|
||||
packaging
|
||||
pycountry
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
beets
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
writableTmpDirAsHomeHook
|
||||
pytestCheckHook
|
||||
@@ -58,7 +62,19 @@ buildPythonPackage {
|
||||
"test_get_html"
|
||||
];
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
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)";
|
||||
|
||||
Reference in New Issue
Block a user