mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 20:33:21 +00:00
a8585b15a7
Diff: https://github.com/gwww/elkm1/compare/refs/tags/2.2.8...2.2.10 Changelog: https://github.com/gwww/elkm1/blob/2.2.10/CHANGELOG.md
49 lines
982 B
Nix
49 lines
982 B
Nix
{
|
|
lib,
|
|
async-timeout,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
hatchling,
|
|
pyserial-asyncio-fast,
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "elkm1-lib";
|
|
version = "2.2.10";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gwww";
|
|
repo = "elkm1";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-8B3icNW1QTTjFeWllPKzVgRFz+gUzUV6o3wOBXx2Zws=";
|
|
};
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
dependencies = [
|
|
async-timeout
|
|
pyserial-asyncio-fast
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "elkm1_lib" ];
|
|
|
|
meta = with lib; {
|
|
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 = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|