Files
nixpkgs/pkgs/development/python-modules/python-smarttub/default.nix

56 lines
1015 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.44";
pyproject = true;
src = fetchFromGitHub {
owner = "mdz";
repo = "python-smarttub";
tag = "v${version}";
hash = "sha256-ozOnCJXv99gne59HQEdQfCKZe8HhK2q9vShMuBlSWE8=";
};
build-system = [
hatch-vcs
hatchling
];
dependencies = [
aiohttp
inflection
pyjwt
python-dateutil
];
nativeCheckInputs = [
aresponses
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [ "smarttub" ];
meta = with lib; {
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 = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}