python3Packages.pyteleinfo: init at 0.4.0

This commit is contained in:
Jamie Magee
2026-05-09 21:38:59 -07:00
parent e8c3e414a6
commit 090b7d28bf
2 changed files with 57 additions and 0 deletions
@@ -0,0 +1,55 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
pydantic-settings,
pyserial,
pyserial-asyncio-fast,
pyhamcrest,
pytest-asyncio,
pytest-cov-stub,
pytest-mock,
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "pyteleinfo";
version = "0.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "esciara";
repo = "pyteleinfo";
tag = "v${finalAttrs.version}";
hash = "sha256-uNkCunWlFoGmg80t69z2PXyPL1pGDsezTc8heec97VI=";
};
build-system = [ hatchling ];
pythonRelaxDeps = [ "pydantic-settings" ];
dependencies = [
pydantic-settings
pyserial
pyserial-asyncio-fast
];
nativeCheckInputs = [
pyhamcrest
pytest-asyncio
pytest-cov-stub
pytest-mock
pytestCheckHook
];
pythonImportsCheck = [ "teleinfo" ];
meta = {
description = "Python library for decoding and encoding ENEDIS teleinfo frames";
homepage = "https://github.com/esciara/pyteleinfo";
changelog = "https://github.com/esciara/pyteleinfo/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.bsd3;
maintainers = [ lib.maintainers.jamiemagee ];
};
})
+2
View File
@@ -15295,6 +15295,8 @@ self: super: with self; {
pytelegrambotapi = callPackage ../development/python-modules/pyTelegramBotAPI { };
pyteleinfo = callPackage ../development/python-modules/pyteleinfo { };
pytenable = callPackage ../development/python-modules/pytenable { };
pytensor = callPackage ../development/python-modules/pytensor { };