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