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.

33 lines
842 B
Nix
Raw Normal View History

2022-10-08 04:00:00 +00:00
{ lib, python3Packages, ffmpeg }:
python3Packages.buildPythonApplication rec {
pname = "twspace-dl";
version = "2023.1.22.1";
2022-10-08 04:00:00 +00:00
format = "pyproject";
2022-10-08 04:00:00 +00:00
src = python3Packages.fetchPypi {
inherit version;
pname = "twspace_dl";
sha256 = "050e78b4583374351c288114e3b01ab34b0b19ad2d4971d15c5519521cf3f2f4";
2022-10-08 04:00: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";
};
}