nixpkgs/pkgs/development/python-modules/python-yate/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

43 lines
891 B
Nix

{ lib
, aiohttp
, async-timeout
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "python-yate";
version = "0.4.1";
format = "setuptools";
src = fetchFromGitHub {
owner = "eventphone";
repo = "python-yate";
rev = "refs/tags/v${version}";
hash = "sha256-AdnlNsEOFuzuGTBmfV9zKyv2iFHEJ4eLMrC6SHHf7m0=";
};
propagatedBuildInputs = [
aiohttp
async-timeout
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"yate"
];
meta = with lib; {
description = "Python library for the yate telephony engine";
mainProgram = "yate_callgen";
homepage = "https://github.com/eventphone/python-yate";
changelog = "https://github.com/eventphone/python-yate/releases/tag/v${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ clerie ];
};
}