2020-01-24 12:27:35 +03:00
|
|
|
{ stdenv, python3Packages, mopidy }:
|
2015-12-15 05:19:58 +03:00
|
|
|
|
2020-01-24 12:27:35 +03:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2018-06-23 16:27:58 +03:00
|
|
|
pname = "mopidy-youtube";
|
2020-01-24 12:27:35 +03:00
|
|
|
version = "3.0";
|
2015-12-15 05:19:58 +03:00
|
|
|
|
2020-01-24 12:27:35 +03:00
|
|
|
src = python3Packages.fetchPypi {
|
|
|
|
inherit version;
|
|
|
|
pname = "Mopidy-YouTube";
|
|
|
|
sha256 = "0x1q9rfnjx65n6hi8s5rw5ff4xv55h63zy52fwm8aksdnzppr7gd";
|
2015-12-15 05:19:58 +03:00
|
|
|
};
|
|
|
|
|
2020-01-24 12:27:35 +03:00
|
|
|
patchPhase = "sed s/bs4/beautifulsoup4/ -i setup.cfg";
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
mopidy
|
|
|
|
python3Packages.beautifulsoup4
|
|
|
|
python3Packages.cachetools
|
|
|
|
python3Packages.youtube-dl
|
|
|
|
];
|
2015-12-15 05:19:58 +03:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Mopidy extension for playing music from YouTube";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.spwhitt ];
|
|
|
|
};
|
|
|
|
}
|