depot/third_party/nixpkgs/pkgs/development/python-modules/elkm1-lib/default.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

48 lines
981 B
Nix

{
lib,
async-timeout,
buildPythonPackage,
fetchFromGitHub,
hatchling,
pyserial-asyncio-fast,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "elkm1-lib";
version = "2.2.8";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "gwww";
repo = "elkm1";
rev = "refs/tags/${version}";
hash = "sha256-tUHpDVHx3eIWGftAViVbW9zt7wyWqD+5vJeOPf9jeIg=";
};
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 ];
};
}