main
 1{
 2  lib,
 3  buildPythonPackage,
 4  fetchPypi,
 5}:
 6
 7buildPythonPackage rec {
 8  pname = "beets-lidarr-fields";
 9  version = "1.1.2";
10  format = "setuptools";
11
12  src = fetchPypi {
13    inherit pname version;
14    hash = "sha256-wlybw3v0QLfeIgbezz5PQdbGFsu9KLI1AkVQD4CrgI4=";
15  };
16
17  # Don't check for beets dependency - it will be provided by the beets package
18  pythonRemoveDeps = [ "beets" ];
19
20  # Remove conflicting files from namespace package
21  postInstall = ''
22    rm -rf $out/lib/python*/site-packages/beetsplug/__init__.py
23    rm -rf $out/lib/python*/site-packages/beetsplug/__pycache__
24  '';
25
26  # Tests require a running beets setup
27  doCheck = false;
28
29  # Skip imports check to avoid needing beets at build time
30  pythonImportsCheck = [ ];
31
32  meta = with lib; {
33    description = "Beets plugin that defines useful template fields to customize path formats in a Lidarr-compatible way";
34    homepage = "https://github.com/rafaelparente/beets-lidarr-fields";
35    license = licenses.mit;
36    maintainers = with maintainers; [ ];
37  };
38}