depot/third_party/nixpkgs/pkgs/development/python-modules/elkm1-lib/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

49 lines
873 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, poetry-core
, pyserial-asyncio
, pytest-asyncio
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "elkm1-lib";
version = "2.1.0";
format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "gwww";
repo = "elkm1";
rev = version;
hash = "sha256-uc+hU4RyF6IXUbdpZHozbF6vO2NE2hrfgxAnmmB27lw=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
pyserial-asyncio
];
checkInputs = [
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";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}