depot/third_party/nixpkgs/pkgs/development/python-modules/elkm1-lib/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

48 lines
985 B
Nix

{
lib,
async-timeout,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pyserial-asyncio-fast,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "elkm1-lib";
version = "2.2.7";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "gwww";
repo = "elkm1";
rev = "refs/tags/${version}";
hash = "sha256-5YdmZO/8HimQ9Ft/K/I6xu0Av2SjUBp3+poBe7aVUpM=";
};
build-system = [ poetry-core ];
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 ];
};
}