Files
nixpkgs/pkgs/development/python-modules/keba-kecontact/default.nix
T

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 ];
};
}