2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
56 lines
1,019 B
Nix
56 lines
1,019 B
Nix
{ lib
|
|
, aiohttp
|
|
, aresponses
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, inflection
|
|
, pyjwt
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, python-dateutil
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-smarttub";
|
|
version = "0.0.36";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mdz";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-cng19NW5Eq3arysl0B3dfK2Hy6lQFBFh7g2hxvxeklU=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
inflection
|
|
pyjwt
|
|
python-dateutil
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
aresponses
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace "pyjwt~=2.1.0" "pyjwt>=2.1.0"
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|