51 lines
902 B
Nix
51 lines
902 B
Nix
{ lib
|
|
, aiohttp
|
|
, aresponses
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, inflection
|
|
, pyjwt
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, python-dateutil
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-smarttub";
|
|
version = "0.0.28";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mdz";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-dAwOi1hhjGhBGKEp5u3qW5WL1GLHBFac0drIc1Zk6ok=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
inflection
|
|
pyjwt
|
|
python-dateutil
|
|
];
|
|
|
|
checkInputs = [
|
|
aresponses
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"smarttub"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python API for SmartTub enabled hot tubs";
|
|
homepage = "https://github.com/mdz/python-smarttub";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|