blob: e65c60e037c96fc03536ae8ef42499a7f1becccd (
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
47
48
49
50
51
52
53
54
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
dpkt,
# tests
mock,
pytestCheckHook,
pytest-asyncio,
}:
buildPythonPackage rec {
pname = "aiortsp";
version = "1.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "marss";
repo = "aiortsp";
tag = "v${version}";
hash = "sha256-/ydsu+53WOocdWk3AW0/cXBEx1qAlhIC0LUDy459pbQ=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ dpkt ];
nativeCheckInputs = [
mock
pytestCheckHook
pytest-asyncio
];
disabledTestPaths = [
# these tests get stuck, could be pytest-asyncio compat issue
"tests/test_connection.py"
];
pythonImportsCheck = [ "aiortsp" ];
meta = {
description = "Asyncio-based RTSP library";
homepage = "https://github.com/marss/aiortsp";
changelog = "https://github.com/marss/aiortsp/blob/${src.rev}/CHANGELOG.rst";
license = lib.licenses.lgpl3Plus;
maintainers = with lib.maintainers; [ hexa ];
};
}
|