depot/third_party/nixpkgs/pkgs/development/python-modules/heatmiserv3/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

46 lines
920 B
Nix

{
appdirs,
buildPythonPackage,
fetchFromGitHub,
importlib-resources,
lib,
poetry-core,
pyserial,
pyserial-asyncio,
pytestCheckHook,
pyyaml,
}:
buildPythonPackage rec {
pname = "heatmiserv3";
version = "2.0.3";
pyproject = true;
src = fetchFromGitHub {
owner = "andylockran";
repo = "heatmiserV3";
rev = "refs/tags/${version}";
hash = "sha256-Ia0QUMDvuvn2af52lW7ObSQ9MSPNOgWyBuFBnqfYrpM=";
};
build-system = [ poetry-core ];
dependencies = [
appdirs
importlib-resources
pyserial
pyserial-asyncio
pyyaml
];
pythonImportsCheck = [ "heatmiserv3" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = {
description = "Library to interact with Heatmiser Themostats using V3 protocol";
homepage = "https://github.com/andylockran/heatmiserV3";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}