nixpkgs/pkgs/development/python-modules/velbus-aio/default.nix

53 lines
1022 B
Nix

{ lib
, backoff
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pyserial
, pyserial-asyncio
, pytestCheckHook
, setuptools
}:
buildPythonPackage rec {
pname = "velbus-aio";
version = "2023.12.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "Cereal2nd";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-cYqEF2Odouu7U0DiU+n/gKUYJia8I4Qs1l+UI6JrWTM=";
fetchSubmodules = true;
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
backoff
pyserial
pyserial-asyncio
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"velbusaio"
];
meta = with lib; {
description = "Python library to support the Velbus home automation system";
homepage = "https://github.com/Cereal2nd/velbus-aio";
changelog = "https://github.com/Cereal2nd/velbus-aio/releases/tag/${version}";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}