mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-12-04 11:50:01 +00:00
42 lines
908 B
Nix
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 ];
|
|
};
|
|
})
|