2021-03-04 21:15:41 +01:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, aresponses
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, inflection
|
|
|
|
, pyjwt
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
|
|
|
, python-dateutil
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-smarttub";
|
2021-06-03 01:57:14 +02:00
|
|
|
version = "0.0.25";
|
2021-03-04 21:15:41 +01:00
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mdz";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-06-03 01:57:14 +02:00
|
|
|
sha256 = "13yf75vmn15g2hrbiv78mws96qbk40p5pz7vc6ljyp41y2lc9wpm";
|
2021-03-04 21:15:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
inflection
|
2021-04-04 13:15:04 +02:00
|
|
|
pyjwt
|
2021-03-04 21:15:41 +01:00
|
|
|
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 ];
|
2021-04-04 13:15:04 +02:00
|
|
|
broken = pyjwt.version != "1.7.1";
|
2021-03-04 21:15:41 +01:00
|
|
|
};
|
|
|
|
}
|