Merge pull request #282042 from doronbehar/pkg/beets

beets: mkPlugin: change default testPaths to fit unstable beets as well
This commit is contained in:
Doron Behar
2024-01-21 18:01:29 +02:00
committed by GitHub
3 changed files with 30 additions and 1 deletions
@@ -9,6 +9,7 @@
, mp3gain
, mp3val
, python3Packages
, version
, ...
}: {
absubmit = {
@@ -123,4 +124,16 @@
unimported.testPaths = [ ];
web.propagatedBuildInputs = [ python3Packages.flask ];
zero = { };
# NOTE: Condition can be removed once stable beets updates
} // lib.optionalAttrs ((lib.versions.majorMinor version) != "1.6") {
limit = { };
substitute = {
testPaths = [ ];
};
advancedrewrite = {
testPaths = [ ];
};
autobpm = {
testPaths = [ ];
};
}
+15 -1
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;
};
+2
View File
@@ -22,6 +22,8 @@ lib.makeExtensible (self: {
beets-stable = callPackage ./common.nix rec {
inherit python3Packages;
# NOTE: ./builtin-plugins.nix and ./common.nix can have some conditionals
# be removed when stable version updates
version = "1.6.0";
src = fetchFromGitHub {
owner = "beetbox";