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";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "2024.7.2.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";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-GLs+UGEOsdGcp/mEh+12Vs+XlY1goEql7UOAvVVi1pg=";
|
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; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Python module to download twitter spaces";
|
2022-10-21 18:38:19 +00:00
|
|
|
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-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2022-10-21 18:38:19 +00:00
|
|
|
mainProgram = "twspace_dl";
|
|
|
|
};
|
|
|
|
}
|