1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/tools/misc/yle-dl/default.nix

30 lines
906 B
Nix
Raw Normal View History

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