about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/audio/wyoming/piper.nix
blob: fbc52a88aa20ce657b5e01571b1824858d2a4117 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ lib
, python3
, fetchPypi
}:

python3.pkgs.buildPythonApplication rec {
  pname = "wyoming-piper";
  version = "1.3.2";
  format = "setuptools";

  src = fetchPypi {
    pname = "wyoming_piper";
    inherit version;
    hash = "sha256-WyoHwIF3xC5nOa7iQ8/esfdwahbU6YJzK5G2Vi3mV4M=";
  };

  patches = [
    ./piper-entrypoint.patch
  ];

  propagatedBuildInputs = with python3.pkgs; [
    wyoming
  ];

  pythonImportsCheck = [
    "wyoming_piper"
  ];

  doCheck = false;

  meta = with lib; {
    description = "Wyoming Server for Piper";
    homepage = "https://pypi.org/project/wyoming-piper/";
    license = licenses.mit;
    maintainers = with maintainers; [ hexa ];
  };
}