diff --git a/pkgs/default.nix b/pkgs/default.nix index 21e709cc..f60cd692 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -44,6 +44,7 @@ let guix-binary = callPackage ./guix-binary.nix { }; junction = callPackage ./junction.nix { }; libcs50 = callPackage ./libcs50.nix { }; + mopidy-internetarchive = callPackage ./mopidy-internetarchive.nix { }; pop-launcher = callPackage ./pop-launcher.nix { }; pop-launcher-plugin-duckduckgo-bangs = callPackage ./pop-launcher-plugin-duckduckgo-bangs.nix { }; diff --git a/pkgs/mopidy-internetarchive.nix b/pkgs/mopidy-internetarchive.nix new file mode 100644 index 00000000..c4775b05 --- /dev/null +++ b/pkgs/mopidy-internetarchive.nix @@ -0,0 +1,32 @@ +{ lib, fetchFromGitHub, python3, mopidy }: + +python3.pkgs.buildPythonApplication rec { + pname = "mopidy-internetarchive"; + version = "3.0.0"; + + src = fetchFromGitHub { + owner = "tkem"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-kFkqqI9E6cKrRtSO433EpFPy/QYuqaorCEplBCwuXhU="; + }; + + propagatedBuildInputs = with python3.pkgs; [ + cachetools + pykka + requests + setuptools + uritools + ] ++ [ mopidy ]; + + checkInputs = with python3.pkgs; [ + pytest + pytest-cov + ]; + + meta = with lib; { + description = "Mopidy extension for listening to audio from Internet Archive"; + homepage = "https://github.com/tkem/mopidy-internetarchive"; + license = licenses.asl20; + }; +}