nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 53 lines 1.1 kB view raw
1{ 2 lib, 3 python3Packages, 4 fetchFromGitHub, 5 ffmpeg, 6 wget, 7 versionCheckHook, 8}: 9 10let 11 version = "20250730"; 12 13 src = fetchFromGitHub { 14 owner = "aajanki"; 15 repo = "yle-dl"; 16 tag = "releases/${version}"; 17 hash = "sha256-85Dj+r6heusvT3+y3SNYBBa5h/tje0G4XHmfJpCwkMY="; 18 }; 19in 20python3Packages.buildPythonApplication { 21 pname = "yle-dl"; 22 inherit version src; 23 pyproject = true; 24 25 build-system = with python3Packages; [ flit-core ]; 26 27 dependencies = with python3Packages; [ 28 configargparse 29 lxml 30 requests 31 ]; 32 33 pythonPath = [ 34 wget 35 ffmpeg 36 ]; 37 38 nativeCheckInputs = [ 39 versionCheckHook 40 # tests require network access 41 # python3Packages.pytestCheckHook 42 ]; 43 44 meta = { 45 description = "Downloads videos from Yle (Finnish Broadcasting Company) servers"; 46 homepage = "https://aajanki.github.io/yle-dl/"; 47 changelog = "https://github.com/aajanki/yle-dl/blob/${src.tag}/ChangeLog"; 48 license = lib.licenses.gpl3Plus; 49 maintainers = with lib.maintainers; [ dezgeg ]; 50 platforms = lib.platforms.unix; 51 mainProgram = "yle-dl"; 52 }; 53}