beets: mkPlugin: change default testPaths to fit unstable beets as well

This commit is contained in:
Doron Behar 2024-01-19 13:44:25 +02:00
parent 5be2ce477a
commit 9320dde5f3

View File

@ -36,7 +36,21 @@
let
inherit (lib) attrNames attrValues concatMap;
mkPlugin = { name, enable ? !disableAllPlugins, builtin ? false, propagatedBuildInputs ? [ ], testPaths ? [ "test/test_${name}.py" ], wrapperBins ? [ ] }: {
mkPlugin = { name
, enable ? !disableAllPlugins
, builtin ? false
, propagatedBuildInputs ? [ ]
, testPaths ? [
# NOTE: This conditional can be removed when beets-stable is updated and
# the default plugins test path is changed
(if (lib.versions.majorMinor version) == "1.6" then
"test/test_${name}.py"
else
"test/plugins/test_${name}.py"
)
]
, wrapperBins ? [ ]
}: {
inherit name enable builtin propagatedBuildInputs testPaths wrapperBins;
};