2021-01-25 00:26:54 -08:00
|
|
|
{ lib, fetchFromGitHub, rtmpdump, php, wget, python3Packages, ffmpeg_3 }:
|
2015-11-21 13:44:32 -08:00
|
|
|
|
2020-10-10 17:18:51 -07:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "yle-dl";
|
2020-10-27 03:56:30 -07:00
|
|
|
version = "20201022";
|
2015-11-21 13:44:32 -08:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aajanki";
|
|
|
|
repo = "yle-dl";
|
|
|
|
rev = version;
|
2020-10-27 03:56:30 -07:00
|
|
|
sha256 = "0p56pb3wxdzqgs4fsh4hn06xs0mgzgznqqr0bn2vkkkibnkr1asp";
|
2015-11-21 13:44:32 -08:00
|
|
|
};
|
|
|
|
|
2020-10-10 17:18:51 -07:00
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
attrs ConfigArgParse ffmpeg_3 future lxml requests
|
2020-01-16 03:09:01 -08:00
|
|
|
];
|
2020-10-10 17:18:51 -07:00
|
|
|
pythonPath = [ rtmpdump php wget ];
|
2017-11-03 11:01:28 -07:00
|
|
|
|
|
|
|
doCheck = false; # tests require network access
|
2020-10-10 17:18:51 -07:00
|
|
|
checkInputs = with python3Packages; [ ffmpeg_3 pytest pytestrunner ];
|
2015-11-21 13:44:32 -08:00
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2015-11-21 13:44:32 -08:00
|
|
|
description = "Downloads videos from Yle (Finnish Broadcasting Company) servers";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://aajanki.github.io/yle-dl/";
|
2020-10-10 17:18:51 -07:00
|
|
|
license = licenses.gpl3Plus;
|
2020-10-27 04:08:00 -07:00
|
|
|
maintainers = with maintainers; [ dezgeg SuperSandro2000 ];
|
2020-10-27 07:03:10 -07:00
|
|
|
platforms = platforms.unix;
|
2015-11-21 13:44:32 -08:00
|
|
|
};
|
|
|
|
}
|