aa94e5e2c8
Diff: https://github.com/dannerph/keba-kecontact/compare/refs/tags/4.2.1...4.3.0 Changelog: https://github.com/dannerph/keba-kecontact/releases/tag/4.3.0
45 lines
927 B
Nix
45 lines
927 B
Nix
{
|
|
lib,
|
|
asyncio-dgram,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
hatchling,
|
|
ifaddr,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "keba-kecontact";
|
|
version = "4.3.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dannerph";
|
|
repo = "keba-kecontact";
|
|
tag = version;
|
|
hash = "sha256-gIqHo+J/I4vqJCs/r3ZHo3kChefTRqpVmdw3r3y3Hzk=";
|
|
};
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
dependencies = [
|
|
asyncio-dgram
|
|
ifaddr
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "keba_kecontact" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python library for controlling KEBA charging stations";
|
|
homepage = "https://github.com/dannerph/keba-kecontact";
|
|
changelog = "https://github.com/dannerph/keba-kecontact/releases/tag/${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|