summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/aiortc/default.nix
blob: c1111963e9f0ae06f3a8b267785202b5d70982b4 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
  lib,
  buildPythonPackage,
  setuptools,
  aioice,
  av,
  cffi,
  cryptography,
  google-crc32c,
  pyee,
  pylibsrtp,
  pyopenssl,
  libopus,
  libvpx,
  ifaddr,
  dnspython,
  fetchFromGitHub,
  pytestCheckHook,
  numpy,
}:

buildPythonPackage rec {
  pname = "aiortc";
  version = "1.14.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "aiortc";
    repo = "aiortc";
    tag = version;
    hash = "sha256-ZgxSaiKkJrA5XvUT1zq8kwqB8mOvn46vLWXHyJSsHbM=";
  };

  build-system = [
    setuptools
  ];

  dependencies = [
    aioice
    av
    cffi
    cryptography
    google-crc32c
    pyee
    pylibsrtp
    pyopenssl
    libopus
    libvpx
    ifaddr
    dnspython
  ];

  nativeCheckInputs = [
    numpy
    pytestCheckHook
  ];
  disabledTestPaths = [
    "tests/test_ortc.py" # hangs on: aiortc.rtcicetransport:rtcicetransport.py:365 RTCIceTransport(controlled) - new -> checking
    "tests/test_rtcicetransport.py" # hangs on: aiortc.rtcicetransport:rtcicetransport.py:365 RTCIceTransport(controlled) - new -> checking
    "tests/test_rtcpeerconnection.py" # fails
    "tests/test_contrib_signaling.py" # fails on darwin
  ];
  doCheck = true;
  pythonImportsCheck = [
    "aiortc"
  ];

  meta = {
    description = "WebRTC and ORTC implementation for Python using asyncio";
    homepage = "https://github.com/aiortc/aiortc";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ gesperon ];
  };
}