From 1bb60c2755d6f689dccce6b4dd425d239bfdbdce Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Sat, 8 Oct 2022 04:00:00 +0000 Subject: [PATCH] twspace-dl: init at 2022.6.6.1 --- pkgs/tools/misc/twspace-dl/default.nix | 29 ++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/tools/misc/twspace-dl/default.nix diff --git a/pkgs/tools/misc/twspace-dl/default.nix b/pkgs/tools/misc/twspace-dl/default.nix new file mode 100644 index 000000000000..e1a3f06b2e99 --- /dev/null +++ b/pkgs/tools/misc/twspace-dl/default.nix @@ -0,0 +1,29 @@ +{ lib, python3Packages, ffmpeg }: + +python3Packages.buildPythonApplication rec { + pname = "twspace-dl"; + version = "2022.6.6.1"; + + format = "setuptools"; + + src = python3Packages.fetchPypi { + inherit pname version; + sha256 = "47622f306f2601185b00d6ef24f821810adcc581b7361c423eec979263725afc"; + }; + + 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"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0a1993b03b9c..8b3f3fadfc5f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12037,6 +12037,8 @@ with pkgs; twitterBootstrap = callPackage ../development/web/twitter-bootstrap {}; + twspace-dl = callPackage ../tools/misc/twspace-dl { }; + twtxt = python3Packages.callPackage ../applications/networking/twtxt { }; twurl = callPackage ../tools/misc/twurl { };