nixpkgs/pkgs/tools/misc/twspace-dl/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
942 B
Nix
Raw Normal View History

{ lib, python3Packages, fetchPypi, ffmpeg-headless }:
2022-10-08 04:00:00 +00:00
python3Packages.buildPythonApplication rec {
pname = "twspace-dl";
version = "2023.7.24.1";
2022-10-08 04:00:00 +00:00
format = "pyproject";
2022-10-08 04:00:00 +00:00
src = fetchPypi {
inherit version;
pname = "twspace_dl";
sha256 = "sha256-Oq9k5Nfixf1vihhna7g3ZkqCwEtCdnvlbxIuOnGVoKE=";
2022-10-08 04:00:00 +00:00
};
nativeBuildInputs = with python3Packages; [ poetry-core ];
2022-10-08 04:00:00 +00:00
propagatedBuildInputs = with python3Packages; [
mutagen
2022-10-08 04:00:00 +00:00
requests
];
makeWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath [ ffmpeg-headless ]}" ];
2022-10-08 04:00:00 +00:00
pythonImportsCheck = [ "twspace_dl" ];
meta = with lib; {
description = "A python module to download twitter spaces";
homepage = "https://github.com/HoloArchivists/twspace-dl";
changelog = "https://github.com/HoloArchivists/twspace-dl/releases/tag/${version}";
2022-10-08 04:00:00 +00:00
license = licenses.gpl2Only;
maintainers = with maintainers; [ marsam ];
mainProgram = "twspace_dl";
};
}