Files
nixpkgs/pkgs/development/python-modules/aiortsp/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

55 lines
1.0 KiB
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";
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 ];
};
}