summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/rtp/default.nix
blob: 20016f3d23e4c9c88afe789287fc45f32c9559c0 (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
{
  lib,
  buildPythonPackage,
  fetchPypi,

  # nativeCheckInputs
  hypothesis,
  unittestCheckHook,

}:

buildPythonPackage rec {
  pname = "rtp";
  version = "0.0.3";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-I5k3uF5lSLDdCWjBEQC4kl2dWyAKcHEJIYwqnEvJDBI=";
  };

  nativeCheckInputs = [
    hypothesis
    unittestCheckHook
  ];

  unittestFlagsArray = [
    "-s"
    "tests"
    "-v"
  ];

  pythonImportsCheck = [ "rtp" ];

  meta = {
    description = "Library for decoding/encoding rtp packets";
    homepage = "https://github.com/bbc/rd-apmm-python-lib-rtp";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ fleaz ];
  };
}