nixpkgs/pkgs/development/python-modules/telnetlib3/default.nix
2026-06-19 14:28:35 +00:00

69 lines
1.3 KiB
Nix

{
addBinToPathHook,
blessed,
buildPythonPackage,
fetchFromGitHub,
hatchling,
lib,
pexpect,
prettytable,
pytest-asyncio,
pytest-cov-stub,
pytest-timeout,
pytest-xdist,
pytestCheckHook,
trustme,
wcwidth,
}:
buildPythonPackage (finalAttrs: {
pname = "telnetlib3";
version = "4.0.5";
pyproject = true;
src = fetchFromGitHub {
owner = "jquast";
repo = "telnetlib3";
tag = finalAttrs.version;
hash = "sha256-qJ9fbly8nNCOppLxEnzmKTE0CbbORnkANvbioSZUgmk=";
};
build-system = [ hatchling ];
pythonRelaxDeps = [
"wcwidth"
];
dependencies = [
blessed
wcwidth
];
optional-dependencies = {
extras = [
prettytable
# FIXME package ucs-detect
];
};
pythonImportsCheck = [ "telnetlib3" ];
nativeCheckInputs = [
addBinToPathHook
pexpect
pytest-asyncio
pytest-cov-stub
pytest-timeout
pytest-xdist
pytestCheckHook
trustme
];
meta = {
changelog = "https://github.com/jquast/telnetlib3/blob/${finalAttrs.src.tag}/docs/history.rst";
description = "Feature-rich Telnet Server, Client, and Protocol library for Python";
homepage = "https://github.com/jquast/telnetlib3";
license = lib.licenses.isc;
maintainers = [ lib.maintainers.dotlambda ];
};
})