forked from mirrors/nixpkgs
pythonPackages.livestreamer: refactor move to python-modules
This commit is contained in:
parent
f320b8456b
commit
a599dc1279
44
pkgs/development/python-modules/livestreamer/default.nix
Normal file
44
pkgs/development/python-modules/livestreamer/default.nix
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
{ stdenv
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchurl
|
||||||
|
, pkgs
|
||||||
|
, isPyPy
|
||||||
|
, pycrypto
|
||||||
|
, requests
|
||||||
|
, singledispatch
|
||||||
|
, futures
|
||||||
|
, isPy27
|
||||||
|
, isPy33
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
version = "1.12.2";
|
||||||
|
pname = "livestreamer";
|
||||||
|
disabled = isPyPy;
|
||||||
|
|
||||||
|
src = pkgs.fetchurl {
|
||||||
|
url = "https://github.com/chrippa/livestreamer/archive/v${version}.tar.gz";
|
||||||
|
sha256 = "1fp3d3z2grb1ls97smjkraazpxnvajda2d1g1378s6gzmda2jvjd";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ pkgs.makeWrapper ];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ pkgs.rtmpdump pycrypto requests ]
|
||||||
|
++ stdenv.lib.optionals isPy27 [ singledispatch futures ]
|
||||||
|
++ stdenv.lib.optionals isPy33 [ singledispatch ];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
wrapProgram $out/bin/livestreamer --prefix PATH : ${pkgs.rtmpdump}/bin
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
homepage = http://livestreamer.tanuki.se;
|
||||||
|
description = ''
|
||||||
|
Livestreamer is CLI program that extracts streams from various
|
||||||
|
services and pipes them into a video player of choice.
|
||||||
|
'';
|
||||||
|
license = licenses.bsd2;
|
||||||
|
maintainers = with maintainers; [ fuuzetsu ];
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
|
@ -2972,36 +2972,7 @@ in {
|
||||||
|
|
||||||
langcodes = callPackage ../development/python-modules/langcodes { };
|
langcodes = callPackage ../development/python-modules/langcodes { };
|
||||||
|
|
||||||
livestreamer = buildPythonPackage rec {
|
livestreamer = callPackage ../development/python-modules/livestreamer { };
|
||||||
version = "1.12.2";
|
|
||||||
name = "livestreamer-${version}";
|
|
||||||
disabled = isPyPy;
|
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "https://github.com/chrippa/livestreamer/archive/v${version}.tar.gz";
|
|
||||||
sha256 = "1fp3d3z2grb1ls97smjkraazpxnvajda2d1g1378s6gzmda2jvjd";
|
|
||||||
};
|
|
||||||
|
|
||||||
buildInputs = [ pkgs.makeWrapper ];
|
|
||||||
|
|
||||||
propagatedBuildInputs = with self; [ pkgs.rtmpdump pycrypto requests ]
|
|
||||||
++ optionals isPy27 [ singledispatch futures ]
|
|
||||||
++ optionals isPy33 [ singledispatch ];
|
|
||||||
|
|
||||||
postInstall = ''
|
|
||||||
wrapProgram $out/bin/livestreamer --prefix PATH : ${pkgs.rtmpdump}/bin
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
homepage = http://livestreamer.tanuki.se;
|
|
||||||
description = ''
|
|
||||||
Livestreamer is CLI program that extracts streams from various
|
|
||||||
services and pipes them into a video player of choice.
|
|
||||||
'';
|
|
||||||
license = licenses.bsd2;
|
|
||||||
maintainers = with maintainers; [ fuuzetsu ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
livestreamer-curses = buildPythonPackage rec {
|
livestreamer-curses = buildPythonPackage rec {
|
||||||
version = "1.5.2";
|
version = "1.5.2";
|
||||||
|
|
Loading…
Reference in a new issue