Files
2026-10-27 09:20:54 +01:00

42 lines
908 B
Nix

{
lib,
asyncio-dgram,
buildPythonPackage,
fetchFromGitHub,
hatchling,
ifaddr,
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "keba-kecontact";
version = "4.3.1";
pyproject = true;
src = fetchFromGitHub {
owner = "dannerph";
repo = "keba-kecontact";
tag = finalAttrs.version;
hash = "sha256-Ir/7lP8TDyOTwIMXKv2d9HYuT9onxrQskdkNhQYaOvU=";
};
build-system = [ hatchling ];
dependencies = [
asyncio-dgram
ifaddr
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "keba_kecontact" ];
meta = {
description = "Python library for controlling KEBA charging stations";
homepage = "https://github.com/dannerph/keba-kecontact";
changelog = "https://github.com/dannerph/keba-kecontact/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
})