Files
nixpkgs/pkgs/development/python-modules/eq3btsmart/default.nix
2025-03-05 23:03:33 +01:00

46 lines
946 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
bleak,
construct-typing,
pytest-asyncio,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "eq3btsmart";
version = "2.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "EuleMitKeule";
repo = "eq3btsmart";
tag = version;
hash = "sha256-JPmIKj8IL3i7QWiMTmGQzqb4h0VqLlhILPAOqMucsuM=";
};
build-system = [ setuptools ];
dependencies = [
bleak
construct-typing
];
pythonImportsCheck = [ "eq3btsmart" ];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
meta = {
changelog = "https://github.com/EuleMitKeule/eq3btsmart/releases/tag/${src.tag}";
description = "Python library that allows interaction with eQ-3 Bluetooth smart thermostats";
homepage = "https://github.com/EuleMitKeule/eq3btsmart";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}