pythonPackages.mps-youtube: refactor move to python-modules
This commit is contained in:
parent
1024394c66
commit
42960fb742
39
pkgs/development/python-modules/mps-youtube/default.nix
Normal file
39
pkgs/development/python-modules/mps-youtube/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
@ -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 { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user