summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-yate/default.nix
blob: 6207b13381e80e0b62fa145acef81e06094ae8d2 (plain)
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
38
39
{
  lib,
  aiohttp,
  async-timeout,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "python-yate";
  version = "0.4.1";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "eventphone";
    repo = "python-yate";
    rev = "refs/tags/v${version}";
    hash = "sha256-AdnlNsEOFuzuGTBmfV9zKyv2iFHEJ4eLMrC6SHHf7m0=";
  };

  propagatedBuildInputs = [
    aiohttp
    async-timeout
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "yate" ];

  meta = with lib; {
    description = "Python library for the yate telephony engine";
    mainProgram = "yate_callgen";
    homepage = "https://github.com/eventphone/python-yate";
    changelog = "https://github.com/eventphone/python-yate/releases/tag/v${version}";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ clerie ];
  };
}