Unverified Commit 4163776f authored by Doron Behar's avatar Doron Behar Committed by GitHub
Browse files

beetcamp: move beets dependency to `nativeBuildInputs` (#473678)

parents 3baa047d a50d2a7f
Loading
Loading
Loading
Loading
+18 −2
Original line number Diff line number Diff line
@@ -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)";