2020-02-16 13:40:48 +00:00
|
|
|
{ lib, python3Packages, fetchFromGitHub }:
|
2018-10-29 18:59:01 +00:00
|
|
|
|
2020-02-16 13:40:48 +00:00
|
|
|
with python3Packages;
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
2019-08-08 23:05:54 +00:00
|
|
|
pname = "mps-youtube";
|
2020-02-16 13:40:48 +00:00
|
|
|
version = "unstable-2020-01-28";
|
2018-10-29 18:59:01 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mps-youtube";
|
|
|
|
repo = "mps-youtube";
|
2020-02-16 13:40:48 +00:00
|
|
|
rev = "b808697133ec2ad7654953232d1e841b20aa7cc3";
|
|
|
|
sha256 = "0lqprlpc0v092xqkjc0cc395ag45lijwgd34dpg2jy6i0f2szywv";
|
2018-10-29 18:59:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2019-08-08 23:05:54 +00:00
|
|
|
meta = with lib; {
|
2018-10-29 18:59:01 +00:00
|
|
|
description = "Terminal based YouTube player and downloader";
|
2019-12-08 16:50:31 +00:00
|
|
|
homepage = "https://github.com/mps-youtube/mps-youtube";
|
2018-10-29 18:59:01 +00:00
|
|
|
license = licenses.gpl3;
|
2020-02-16 13:40:48 +00:00
|
|
|
maintainers = with maintainers; [ koral odi ];
|
2018-10-29 18:59:01 +00:00
|
|
|
};
|
|
|
|
}
|