depot/third_party/nixpkgs/pkgs/tools/misc/yle-dl/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

29 lines
854 B
Nix

{ stdenv, fetchFromGitHub, rtmpdump, php, pythonPackages, ffmpeg }:
pythonPackages.buildPythonApplication rec {
pname = "yle-dl";
version = "2.31";
src = fetchFromGitHub {
owner = "aajanki";
repo = "yle-dl";
rev = version;
sha256 = "0k93p9csyjm0w33diwl5s22kzs3g78jl3n9k8nxxpqrybfjl912f";
};
propagatedBuildInputs = with pythonPackages; [
lxml pyamf pycrypto requests future ffmpeg setuptools
];
pythonPath = [ rtmpdump php ];
doCheck = false; # tests require network access
checkInputs = with pythonPackages; [ pytest pytestrunner ];
meta = with stdenv.lib; {
description = "Downloads videos from Yle (Finnish Broadcasting Company) servers";
homepage = "https://aajanki.github.io/yle-dl/";
license = licenses.gpl3;
maintainers = [ maintainers.dezgeg ];
platforms = platforms.linux;
};
}