summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pylibsrtp/default.nix
blob: ae22699c2b1e1930a805c3ea987fcde85709ec22 (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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  cffi,
  srtp,
  openssl,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "pylibsrtp";
  version = "1.0.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "aiortc";
    repo = "pylibsrtp";
    tag = version;
    hash = "sha256-Q8EyGAJKkq14sqSEMWLB8arKvj/wuALK/XwOZ27F1nQ=";
  };

  build-system = [
    setuptools
  ];

  dependencies = [
    cffi
    srtp
    openssl
  ];

  nativeCheckInputs = [ pytestCheckHook ];
  doCheck = true;
  pythonImportsCheck = [
    "pylibsrtp"
  ];

  meta = {
    description = "Python bindings for libsrtp";
    homepage = "https://github.com/aiortc/pylibsrtp";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ gesperon ];
  };
}