e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
54 lines
903 B
Nix
54 lines
903 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
|
|
# build-system
|
|
, setuptools
|
|
|
|
# dependencies
|
|
, dpkt
|
|
|
|
# tests
|
|
, mock
|
|
, pytestCheckHook
|
|
, pytest-asyncio
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aiortsp";
|
|
version = "1.3.7";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "marss";
|
|
repo = "aiortsp";
|
|
rev = version;
|
|
hash = "sha256-bxfnKAzMYh0lhS3he617eGhO7hmNbiwEYHh8k/PZ6r4=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
dpkt
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
mock
|
|
pytestCheckHook
|
|
pytest-asyncio
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"aiortsp"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "An Asyncio-based RTSP library";
|
|
homepage = "https://github.com/marss/aiortsp";
|
|
changelog = "https://github.com/marss/aiortsp/blob/${src.rev}/CHANGELOG.rst";
|
|
license = licenses.lgpl3Plus;
|
|
maintainers = with maintainers; [ hexa ];
|
|
};
|
|
}
|