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