depot/third_party/nixpkgs/pkgs/development/python-modules/elkm1-lib/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

52 lines
1,006 B
Nix

{ lib
, async-timeout
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, poetry-core
, pyserial-asyncio
, pytest-asyncio
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "elkm1-lib";
version = "2.2.1";
format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "gwww";
repo = "elkm1";
rev = "refs/tags/${version}";
hash = "sha256-UrdnEafmzO/l1kTcGmPWhujbThVWv4uBH57D2uZB/kw=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
async-timeout
pyserial-asyncio
];
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 ];
};
}