diff --git a/pkgs/development/python-modules/pylibsrtp/default.nix b/pkgs/development/python-modules/pylibsrtp/default.nix new file mode 100644 index 000000000000..ae22699c2b1e --- /dev/null +++ b/pkgs/development/python-modules/pylibsrtp/default.nix @@ -0,0 +1,46 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + cffi, + srtp, + openssl, + pytestCheckHook, +}: + +buildPythonPackage rec { + pname = "pylibsrtp"; + version = "1.0.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "aiortc"; + repo = "pylibsrtp"; + tag = version; + hash = "sha256-Q8EyGAJKkq14sqSEMWLB8arKvj/wuALK/XwOZ27F1nQ="; + }; + + build-system = [ + setuptools + ]; + + dependencies = [ + cffi + srtp + openssl + ]; + + nativeCheckInputs = [ pytestCheckHook ]; + doCheck = true; + pythonImportsCheck = [ + "pylibsrtp" + ]; + + meta = { + description = "Python bindings for libsrtp"; + homepage = "https://github.com/aiortc/pylibsrtp"; + license = lib.licenses.bsd3; + maintainers = with lib.maintainers; [ gesperon ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c43e108a436b..07390993e14a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -13594,6 +13594,8 @@ self: super: with self; { pylibrespot-java = callPackage ../development/python-modules/pylibrespot-java { }; + pylibsrtp = callPackage ../development/python-modules/pylibsrtp { }; + pylink-square = callPackage ../development/python-modules/pylink-square { }; pylint = callPackage ../development/python-modules/pylint { };