2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
python3,
|
2023-04-12 12:48:02 +00:00
|
|
|
|
|
|
|
# nativeCheckInputs
|
2024-06-05 15:53:02 +00:00
|
|
|
hypothesis,
|
|
|
|
unittestCheckHook,
|
2023-04-12 12:48:02 +00:00
|
|
|
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "rtp";
|
|
|
|
version = "0.0.3";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
hash = "sha256-I5k3uF5lSLDdCWjBEQC4kl2dWyAKcHEJIYwqnEvJDBI=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
hypothesis
|
|
|
|
unittestCheckHook
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
unittestFlagsArray = [
|
|
|
|
"-s"
|
|
|
|
"tests"
|
|
|
|
"-v"
|
2023-04-12 12:48:02 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "rtp" ];
|
2023-04-12 12:48:02 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A library for decoding/encoding rtp packets";
|
|
|
|
homepage = "https://github.com/bbc/rd-apmm-python-lib-rtp";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ fleaz ];
|
|
|
|
};
|
|
|
|
}
|