My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/elkm1-lib/default.nix

49 lines
873 B

{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, poetry-core
, pyserial-asyncio
, pytest-asyncio
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "elkm1-lib";
version = "2.0.0";
format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "gwww";
repo = "elkm1";
rev = version;
hash = "sha256-o0RQgAP38W7paVJonrfj54y2OhMmTihT9xiipEyNVaM=";
};
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 ];
};
}