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