Files
nixpkgs/pkgs/development/python-modules/python-smarttub/default.nix
2025-12-14 22:17:13 +00:00

56 lines
1013 B
Nix

{
lib,
aiohttp,
aresponses,
buildPythonPackage,
fetchFromGitHub,
hatch-vcs,
hatchling,
inflection,
pyjwt,
pytest-asyncio,
pytestCheckHook,
python-dateutil,
}:
buildPythonPackage rec {
pname = "python-smarttub";
version = "0.0.46";
pyproject = true;
src = fetchFromGitHub {
owner = "mdz";
repo = "python-smarttub";
tag = "v${version}";
hash = "sha256-Hx5WVQWB5zk22jExFeka3fzfexBFC/ZWjM7S5WWxxXU=";
};
build-system = [
hatch-vcs
hatchling
];
dependencies = [
aiohttp
inflection
pyjwt
python-dateutil
];
nativeCheckInputs = [
aresponses
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [ "smarttub" ];
meta = {
description = "Python API for SmartTub enabled hot tubs";
homepage = "https://github.com/mdz/python-smarttub";
changelog = "https://github.com/mdz/python-smarttub/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}