depot/third_party/nixpkgs/pkgs/development/python-modules/aiortsp/default.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

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 ];
};
}