nixpkgs-suyu/pkgs/tools/misc/yle-dl/default.nix

31 lines
968 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, rtmpdump, php, wget, python3Packages, ffmpeg }:
2015-11-21 22:44:32 +01:00
2020-10-11 02:18:51 +02:00
python3Packages.buildPythonApplication rec {
pname = "yle-dl";
2021-05-17 08:25:08 +02:00
version = "20210502";
2015-11-21 22:44:32 +01:00
src = fetchFromGitHub {
owner = "aajanki";
repo = "yle-dl";
rev = version;
2021-05-17 08:25:08 +02:00
sha256 = "sha256-HkhyxsiOMOfTHTj+qmY8l2z2sMtO4eMZmJUU/WvV4wY=";
2015-11-21 22:44:32 +01:00
};
2020-10-11 02:18:51 +02:00
propagatedBuildInputs = with python3Packages; [
attrs ConfigArgParse ffmpeg future lxml requests
];
2020-10-11 02:18:51 +02:00
pythonPath = [ rtmpdump php wget ];
2017-11-03 19:01:28 +01:00
doCheck = false; # tests require network access
checkInputs = with python3Packages; [ ffmpeg pytest pytestrunner ];
2015-11-21 22:44:32 +01:00
meta = with lib; {
2015-11-21 22:44:32 +01:00
description = "Downloads videos from Yle (Finnish Broadcasting Company) servers";
homepage = "https://aajanki.github.io/yle-dl/";
2021-05-17 08:25:08 +02:00
changelog = "https://github.com/aajanki/yle-dl/blob/${version}/ChangeLog";
2020-10-11 02:18:51 +02:00
license = licenses.gpl3Plus;
maintainers = with maintainers; [ dezgeg SuperSandro2000 ];
platforms = platforms.unix;
2015-11-21 22:44:32 +01:00
};
}