472aeafc57
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
49 lines
914 B
Nix
49 lines
914 B
Nix
{
|
|
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";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-/ydsu+53WOocdWk3AW0/cXBEx1qAlhIC0LUDy459pbQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [ dpkt ];
|
|
|
|
nativeCheckInputs = [
|
|
mock
|
|
pytestCheckHook
|
|
pytest-asyncio
|
|
];
|
|
|
|
pythonImportsCheck = [ "aiortsp" ];
|
|
|
|
meta = with lib; {
|
|
description = "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 ];
|
|
};
|
|
}
|