2021-03-04 20:15:41 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, aresponses
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, inflection
|
|
|
|
, pyjwt
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
|
|
|
, python-dateutil
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-smarttub";
|
2021-11-27 12:22:15 +00:00
|
|
|
version = "0.0.28";
|
2021-11-24 22:10:34 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2021-03-04 20:15:41 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mdz";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-11-27 12:22:15 +00:00
|
|
|
sha256 = "sha256-dAwOi1hhjGhBGKEp5u3qW5WL1GLHBFac0drIc1Zk6ok=";
|
2021-03-04 20:15:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
inflection
|
2021-04-04 12:15:04 +01:00
|
|
|
pyjwt
|
2021-03-04 20:15:41 +00:00
|
|
|
python-dateutil
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
aresponses
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2021-11-24 22:10:34 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"smarttub"
|
|
|
|
];
|
2021-03-04 20:15:41 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|