mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
50 lines
914 B
Nix
50 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 ];
|
|
};
|
|
}
|