yle-dl: 2.17 -> 2.20

This commit is contained in:
Tuomas Tynkkynen 2017-07-21 11:24:21 +03:00
parent 19325558f1
commit 581637ba5a
1 changed files with 3 additions and 13 deletions

View File

@ -1,28 +1,18 @@
{ stdenv, fetchFromGitHub, rtmpdump, php, pythonPackages }:
stdenv.mkDerivation rec {
pythonPackages.buildPythonApplication rec {
name = "yle-dl-${version}";
version = "2.17";
version = "2.20";
src = fetchFromGitHub {
owner = "aajanki";
repo = "yle-dl";
rev = version;
sha256 = "06szrcm1xlz6i736qkxzhhvrzg63shxzy2bww91bgxfccmkapa14";
sha256 = "06wzv230hfh3w9gs245kff8666bsfbax3ibr5zxj3h5z4qhhf9if";
};
patchPhase = ''
substituteInPlace yle-dl --replace '/usr/local/share/' "$out/share/"
'';
buildInputs = [ pythonPackages.wrapPython ];
pythonPath = [ rtmpdump php ] ++ (with pythonPackages; [ pycrypto ]);
installPhase = ''
make install prefix=$out
wrapPythonPrograms
'';
meta = with stdenv.lib; {
description = "Downloads videos from Yle (Finnish Broadcasting Company) servers";
homepage = https://aajanki.github.io/yle-dl/;