nixos-config/pkgs/mopidy-internetarchive.nix

26 lines
693 B
Nix
Raw Normal View History

2022-01-24 01:11:36 +00:00
{ 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=";
};
2022-03-28 00:18:15 +00:00
propagatedBuildInputs = with python3.pkgs;
[ cachetools pykka requests setuptools uritools ] ++ [ mopidy ];
2022-01-24 01:11:36 +00:00
2022-03-28 00:18:15 +00:00
checkInputs = with python3.pkgs; [ pytest pytest-cov ];
2022-01-24 01:11:36 +00:00
meta = with lib; {
2022-03-28 00:18:15 +00:00
description =
"Mopidy extension for listening to audio from Internet Archive";
2022-01-24 01:11:36 +00:00
homepage = "https://github.com/tkem/mopidy-internetarchive";
license = licenses.asl20;
};
}