depot/third_party/nixpkgs/pkgs/development/python-modules/eq3btsmart/default.nix
Default email 24fdeddc0a Project import generated by Copybara.
GitOrigin-RevId: 2768c7d042a37de65bb1b5b3268fc987e534c49d
2024-10-23 09:41:50 +03:00

47 lines
990 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
bleak,
construct,
construct-typing,
pytest-asyncio,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "eq3btsmart";
version = "1.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "EuleMitKeule";
repo = "eq3btsmart";
rev = "refs/tags/${version}";
hash = "sha256-Z3GfUTh3qp5ICJAYsCO6ufw/Jd5FDjOaQE9SaD3H0IU=";
};
build-system = [ poetry-core ];
dependencies = [
bleak
construct
construct-typing
];
pythonImportsCheck = [ "eq3btsmart" ];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
meta = {
changelog = "https://github.com/EuleMitKeule/eq3btsmart/releases/tag/${version}";
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 ];
};
}