1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 6 # build-system 7 setuptools, 8 9 # dependencies 10 dpkt, 11 12 # tests 13 mock, 14 pytestCheckHook, 15 pytest-asyncio, 16}: 17 18buildPythonPackage rec { 19 pname = "aiortsp"; 20 version = "1.3.7"; 21 pyproject = true; 22 23 src = fetchFromGitHub { 24 owner = "marss"; 25 repo = "aiortsp"; 26 rev = version; 27 hash = "sha256-bxfnKAzMYh0lhS3he617eGhO7hmNbiwEYHh8k/PZ6r4="; 28 }; 29 30 nativeBuildInputs = [ setuptools ]; 31 32 propagatedBuildInputs = [ dpkt ]; 33 34 nativeCheckInputs = [ 35 mock 36 pytestCheckHook 37 pytest-asyncio 38 ]; 39 40 pythonImportsCheck = [ "aiortsp" ]; 41 42 meta = with lib; { 43 description = "An Asyncio-based RTSP library"; 44 homepage = "https://github.com/marss/aiortsp"; 45 changelog = "https://github.com/marss/aiortsp/blob/${src.rev}/CHANGELOG.rst"; 46 license = licenses.lgpl3Plus; 47 maintainers = with maintainers; [ hexa ]; 48 }; 49}