summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/aioice/default.nix
blob: b9a60e3312194d9a21adc334ec08ba17d3f4a3cc (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
{
  lib,
  buildPythonPackage,
  setuptools,
  dnspython,
  ifaddr,
  fetchFromGitHub,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "aioice";
  version = "0.10.2";
  pyproject = true;

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

  build-system = [
    setuptools
  ];

  dependencies = [
    dnspython
    ifaddr
  ];

  nativeCheckInputs = [ pytestCheckHook ];
  disabledTestPaths = [
    # Network tests failing
    "tests/test_ice.py"
    "tests/test_mdns.py"
    "tests/test_turn.py"
    "tests/test_ice_trickle.py"
  ];
  doCheck = true;
  pythonImportsCheck = [
    "aioice"
  ];

  meta = {
    description = "Asyncio-based Interactive Connectivity Establishment (RFC 5245)";
    homepage = "https://github.com/aiortc/aioice";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ gesperon ];
  };
}