1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5
6 # nativeCheckInputs
7 hypothesis,
8 unittestCheckHook,
9
10}:
11
12buildPythonPackage rec {
13 pname = "rtp";
14 version = "0.0.3";
15 format = "setuptools";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-I5k3uF5lSLDdCWjBEQC4kl2dWyAKcHEJIYwqnEvJDBI=";
20 };
21
22 nativeCheckInputs = [
23 hypothesis
24 unittestCheckHook
25 ];
26
27 unittestFlagsArray = [
28 "-s"
29 "tests"
30 "-v"
31 ];
32
33 pythonImportsCheck = [ "rtp" ];
34
35 meta = with lib; {
36 description = "Library for decoding/encoding rtp packets";
37 homepage = "https://github.com/bbc/rd-apmm-python-lib-rtp";
38 license = licenses.asl20;
39 maintainers = with maintainers; [ fleaz ];
40 };
41}