1 { lib, python3Packages, fetchFromGitHub }:
3 python3Packages.buildPythonApplication rec {
7 src = fetchFromGitHub {
10 rev = "refs/tags/v${version}";
11 hash = "sha256-66cGnEEISC+lZAYhFXuVdDtwh1TgwvCP6nBD84z2z0I=";
15 # Don't try to detect the version at runtime with pip
16 substituteInPlace mps_youtube/__init__.py \
17 --replace "from pip._vendor import pkg_resources" "" \
18 --replace "__version__ =" "__version__ = '${version}' #"
21 propagatedBuildInputs = with python3Packages; [
29 checkInputs = with python3Packages; [
36 export XDG_CONFIG_HOME=$(mktemp -d)
39 pythonImportsCheck = [ "mps_youtube" ];
42 description = "Terminal based YouTube player and downloader, forked from mps-youtube";
44 homepage = "https://github.com/mps-youtube/yewtube";
45 license = licenses.gpl3Plus;
46 maintainers = with maintainers; [ fgaz koral ];