1{ lib
2, buildPythonPackage
3, fetchPypi
4, python3
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 = [ "-s" "tests" "-v" ];
28
29 pythonImportsCheck = [
30 "rtp"
31 ];
32
33
34 meta = with lib; {
35 description = "A library for decoding/encoding rtp packets";
36 homepage = "https://github.com/bbc/rd-apmm-python-lib-rtp";
37 license = licenses.asl20;
38 maintainers = with maintainers; [ fleaz ];
39 };
40}