Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 44 lines 1.0 kB view raw
1{ stdenv 2, buildPythonPackage 3, fetchurl 4, pkgs 5, isPyPy 6, pycrypto 7, requests 8, singledispatch 9, futures 10, isPy27 11, isPy33 12}: 13 14buildPythonPackage rec { 15 version = "1.12.2"; 16 pname = "livestreamer"; 17 disabled = isPyPy; 18 19 src = pkgs.fetchurl { 20 url = "https://github.com/chrippa/livestreamer/archive/v${version}.tar.gz"; 21 sha256 = "1fp3d3z2grb1ls97smjkraazpxnvajda2d1g1378s6gzmda2jvjd"; 22 }; 23 24 buildInputs = [ pkgs.makeWrapper ]; 25 26 propagatedBuildInputs = [ pkgs.rtmpdump pycrypto requests ] 27 ++ stdenv.lib.optionals isPy27 [ singledispatch futures ] 28 ++ stdenv.lib.optionals isPy33 [ singledispatch ]; 29 30 postInstall = '' 31 wrapProgram $out/bin/livestreamer --prefix PATH : ${pkgs.rtmpdump}/bin 32 ''; 33 34 meta = with stdenv.lib; { 35 homepage = http://livestreamer.tanuki.se; 36 description = '' 37 Livestreamer is CLI program that extracts streams from various 38 services and pipes them into a video player of choice. 39 ''; 40 license = licenses.bsd2; 41 maintainers = with maintainers; [ fuuzetsu ]; 42 }; 43 44}