Unverified Commit c9f84579 authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

Merge pull request #227656 from Mic92/tts

tts: 0.13.2 -> 0.13.3
parents 454745b3 9b342582
Loading
Loading
Loading
Loading
+27 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
}:

buildPythonPackage rec {
  pname = "bangla";
  version = "0.0.2";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-F8j9UBMhZgB31atqebdGu6cfnkk573isDZp1171xXag=";
  };

  pythonImportsCheck = [ "bangla" ];

  # https://github.com/arsho/bangla/issues/5
  doCheck = false;

  meta = with lib; {
    description = "Bangla is a package for Bangla language users with various functionalities including Bangla date and Bangla numeric conversation";
    homepage = "https://github.com/arsho/bangla";
    license = licenses.mit;
    maintainers = teams.tts.members;
  };
}
+27 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
}:

buildPythonPackage rec {
  pname = "bnnumerizer";
  version = "0.0.2";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-Qd9v0Le1GqTsR3a2ZDzt6+5f0R4zXX1W1KIMCFFeXw0=";
  };

  pythonImportsCheck = [ "bnnumerizer" ];

  # https://github.com/mnansary/bnUnicodeNormalizer/issues/10
  doCheck = false;

  meta = with lib; {
    description = "Bangla Number text to String Converter";
    homepage = "https://github.com/banglakit/number-to-bengali-word";
    license = licenses.mit;
    maintainers = teams.tts.members;
  };
}
+27 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "bnunicodenormalizer";
  version = "0.1.6";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-qVC6+0SnAs25DFzKPHFUOoYPlrRvkGWFptjIVom8wJM=";
  };

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "bnunicodenormalizer" ];

  meta = with lib; {
    description = "Bangla Unicode Normalization Toolkit";
    homepage = "https://github.com/mnansary/bnUnicodeNormalizer";
    license = licenses.mit;
    maintainers = teams.tts.members;
  };
}
+6 −14
Original line number Diff line number Diff line
{ lib
, python3
, fetchFromGitHub
, fetchpatch
, espeak-ng
, tts
}:
@@ -14,29 +13,19 @@ let
in
python.pkgs.buildPythonApplication rec {
  pname = "tts";
  version = "0.13.2";
  version = "0.13.3";
  format = "pyproject";

  src = fetchFromGitHub {
    owner = "coqui-ai";
    repo = "TTS";
    rev = "refs/tags/v${version}";
    hash = "sha256-3t4JYEwQ+puGLhGl3nn93qsL8IeOwlYtHXTrnZ5Cf+w=";
    hash = "sha256-cu714/XtVqqlHN2CmUObcNFG6Vdi9VqC4at/HB8euDs=";
  };

  patches = [
    (fetchpatch {
      # upgrade librosa to 0.10.0
      url = "https://github.com/coqui-ai/TTS/commit/4c829e74a1399ab083b566a70c1b7e879eda6e1e.patch";
      hash = "sha256-QP9AnMbdEpGJywiZBreojHUjq29ihqy6HxvUtS5OKvQ=";
      excludes = [
        "requirements.txt"
      ];
    })
  ];

  postPatch = let
    relaxedConstraints = [
      "bnunicodenormalizer"
      "cython"
      "gruut"
      "inflect"
@@ -64,6 +53,9 @@ python.pkgs.buildPythonApplication rec {

  propagatedBuildInputs = with python.pkgs; [
    anyascii
    bangla
    bnnumerizer
    bnunicodenormalizer
    coqpit
    flask
    fsspec
+6 −0
Original line number Diff line number Diff line
@@ -1185,6 +1185,8 @@ self: super: with self; {

  bandit = callPackage ../development/python-modules/bandit { };

  bangla = callPackage ../development/python-modules/bangla { };

  bap = callPackage ../development/python-modules/bap {
    inherit (pkgs.ocaml-ng.ocamlPackages) bap;
  };
@@ -1404,6 +1406,10 @@ self: super: with self; {

  bme680 = callPackage ../development/python-modules/bme680 { };

  bnnumerizer = callPackage ../development/python-modules/bnnumerizer { };

  bnunicodenormalizer = callPackage ../development/python-modules/bnunicodenormalizer { };

  boa-api = callPackage ../development/python-modules/boa-api { };

  bokeh = callPackage ../development/python-modules/bokeh { };