python39Packages.livestreamer: cleanup, remove python2

+8 -13
+8 -13
pkgs/development/python-modules/livestreamer/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 - , pkgs 4 3 , fetchFromGitHub 5 4 , isPyPy 5 + , makeWrapper 6 + , rtmpdump 6 7 , pycrypto 7 8 , requests 8 - , singledispatch ? null 9 - , futures ? null 10 9 , isPy27 11 10 }: 12 11 13 12 buildPythonPackage rec { 13 + pname = "livestreamer"; 14 14 version = "1.12.2"; 15 - pname = "livestreamer"; 16 15 disabled = isPyPy; 17 16 18 17 src = fetchFromGitHub { 19 18 owner = "chrippa"; 20 19 repo = "livestreamer"; 21 - rev = "v1.12.2"; 20 + rev = "v${version}"; 22 21 sha256 = "sha256-PqqyBh+oMmu7Ynly3fqx/+6mQYX+6SpI0Okj2O+YLz0="; 23 22 }; 24 23 25 - nativeBuildInputs = [ pkgs.makeWrapper ]; 24 + nativeBuildInputs = [ makeWrapper ]; 26 25 27 - propagatedBuildInputs = [ pkgs.rtmpdump pycrypto requests ] 28 - ++ lib.optionals isPy27 [ singledispatch futures ]; 26 + propagatedBuildInputs = [ rtmpdump pycrypto requests ]; 29 27 30 28 postInstall = '' 31 - wrapProgram $out/bin/livestreamer --prefix PATH : ${pkgs.rtmpdump}/bin 29 + wrapProgram $out/bin/livestreamer --prefix PATH : ${lib.makeBinPath [ rtmpdump ]} 32 30 ''; 33 31 34 32 meta = with lib; { 35 33 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 - ''; 34 + description = "Livestreamer is CLI program that extracts streams from various services and pipes them into a video player of choice"; 40 35 license = licenses.bsd2; 41 36 maintainers = with maintainers; [ ]; 42 37 };