mps-youtube: 0.2.8 -> unstable-2020-01-28

Also move derivation from python-packages to all-packages,
as this is a standalone application.
This commit is contained in:
koral
2020-02-20 09:17:50 -08:00
committed by Jon
parent 40376f1724
commit d57c05acd1
3 changed files with 10 additions and 11 deletions
@@ -1,35 +0,0 @@
{ lib, buildPythonPackage, fetchFromGitHub, isPy3k
, pafy
}:
buildPythonPackage rec {
pname = "mps-youtube";
version = "0.2.8";
disabled = (!isPy3k);
src = fetchFromGitHub {
owner = "mps-youtube";
repo = "mps-youtube";
rev = "v${version}";
sha256 = "1w1jhw9rg3dx7vp97cwrk5fymipkcy2wrbl1jaa38ivcjhqg596y";
};
propagatedBuildInputs = [ pafy ];
# disabled due to error in loading unittest
# don't know how to make test from: <mps_youtube. ...>
doCheck = false;
# before check create a directory and redirect XDG_CONFIG_HOME to it
preCheck = ''
mkdir -p check-phase
export XDG_CONFIG_HOME=$(pwd)/check-phase
'';
meta = with lib; {
description = "Terminal based YouTube player and downloader";
homepage = "https://github.com/mps-youtube/mps-youtube";
license = licenses.gpl3;
maintainers = with maintainers; [ odi ];
};
}