Files
nixpkgs/pkgs/development/python-modules/elkm1-lib/default.nix
Ihar Hrachyshka cca3b04b44 treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 19:01:23 +01:00

49 lines
965 B
Nix

{
lib,
async-timeout,
buildPythonPackage,
fetchFromGitHub,
hatchling,
pyserial-asyncio-fast,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "elkm1-lib";
version = "2.2.12";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "gwww";
repo = "elkm1";
tag = version;
hash = "sha256-66Yen8QZAIKzMePFzxOgeprTIMKj3fanicMCBeqhyO4=";
};
build-system = [ hatchling ];
dependencies = [
async-timeout
pyserial-asyncio-fast
];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [ "elkm1_lib" ];
meta = {
description = "Python module for interacting with ElkM1 alarm/automation panel";
homepage = "https://github.com/gwww/elkm1";
changelog = "https://github.com/gwww/elkm1/blob/${version}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}