Skip to content

Commit

Permalink
add edge-tts
Browse files Browse the repository at this point in the history
  • Loading branch information
elohmeier committed Jul 10, 2024
1 parent c2fbda6 commit d7c5903
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/flake/overlays.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
h-move-repo = final.writers.writeBashBin "h-move-repo" { } ../../scripts/h-move-repo.sh;
win10fonts = final.callPackage ../../packages/win10fonts { };
attic-client = final.callPackage ../../packages/attic { clientOnly = true; };
edge-tts = final.callPackage ../../packages/edge-tts { };
# wkhtmltopdf-qt4 = final.callPackage ./wkhtmltopdf-qt4 { };
# xorgxrdp = final.callPackage ./xrdp/xorgxrdp.nix { };
# xrdp = final.callPackage ./xrdp { };
Expand Down
1 change: 1 addition & 0 deletions modules/flake/packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ _: {
packages = {
inherit (pkgs)
aider
edge-tts
prom-checktlsa;
};
};
Expand Down
2 changes: 2 additions & 0 deletions modules/home/packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ in
nurl
gnumake
hl
edge-tts
nix-update
go
# nixd
nodejs_latest
Expand Down
37 changes: 37 additions & 0 deletions packages/edge-tts/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{ lib
, python3
, fetchFromGitHub
}:

python3.pkgs.buildPythonApplication rec {
pname = "edge-tts";
version = "6.1.12";
pyproject = true;

src = fetchFromGitHub {
owner = "rany2";
repo = "edge-tts";
rev = "dfd4cab849a988d9587684cf3f9f9536c92b8f4d";
hash = "sha256-/ECNgsVtR2S5METj5ck7cM9jS9igiBH4GUxMvhWRINU=";
};

nativeBuildInputs = [
python3.pkgs.setuptools
python3.pkgs.wheel
];

propagatedBuildInputs = [
python3.pkgs.certifi
python3.pkgs.aiohttp
];

pythonImportsCheck = [ "edge_tts" ];

meta = with lib; {
description = "Use Microsoft Edge's online text-to-speech service from Python WITHOUT needing Microsoft Edge or Windows or an API key";
homepage = "https://github.com/rany2/edge-tts";
license = licenses.gpl3Only;
maintainers = with maintainers; [ ];
mainProgram = "edge-tts";
};
}

0 comments on commit d7c5903

Please sign in to comment.