pythonPackages.mps-youtube: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-29 14:59:01 -04:00
parent 1024394c66
commit 42960fb742
No known key found for this signature in database
GPG Key ID: 9ED59B0AB1EAF573
2 changed files with 40 additions and 32 deletions

View File

@ -0,0 +1,39 @@
{ stdenv
, buildPythonPackage
, fetchFromGitHub
, isPy3k
, pafy
}:
buildPythonPackage rec {
name = "mps-youtube-${version}";
version = "0.2.7.1";
disabled = (!isPy3k);
src = fetchFromGitHub {
owner = "mps-youtube";
repo = "mps-youtube";
rev = "v${version}";
sha256 = "16zn5gwb3568w95lr21b88zkqlay61p1541sa9c3x69zpi8v0pys";
};
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 stdenv.lib; {
description = "Terminal based YouTube player and downloader";
homepage = https://github.com/np1/mps-youtube;
license = licenses.gpl3;
maintainers = with maintainers; [ odi ];
};
}

View File

@ -4471,38 +4471,7 @@ in {
maildir-deduplicate = callPackage ../development/python-modules/maildir-deduplicate { }; maildir-deduplicate = callPackage ../development/python-modules/maildir-deduplicate { };
mps-youtube = buildPythonPackage rec { mps-youtube = callPackage ../development/python-modules/mps-youtube { };
name = "mps-youtube-${version}";
version = "0.2.7.1";
disabled = (!isPy3k);
# 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
'';
src = pkgs.fetchFromGitHub {
owner = "mps-youtube";
repo = "mps-youtube";
rev = "v${version}";
sha256 = "16zn5gwb3568w95lr21b88zkqlay61p1541sa9c3x69zpi8v0pys";
};
propagatedBuildInputs = with self; [ pafy ];
meta = with stdenv.lib; {
description = "Terminal based YouTube player and downloader";
homepage = https://github.com/np1/mps-youtube;
license = licenses.gpl3;
maintainers = with maintainers; [ odi ];
};
};
d2to1 = callPackage ../development/python-modules/d2to1 { }; d2to1 = callPackage ../development/python-modules/d2to1 { };