2022-06-16 17:23:12 +00:00
|
|
|
{ lib
|
2021-02-05 17:12:51 +00:00
|
|
|
, aiohttp
|
|
|
|
, async-timeout
|
2021-05-20 23:08:51 +00:00
|
|
|
, buildPythonPackage
|
2021-02-05 17:12:51 +00:00
|
|
|
, crcmod
|
|
|
|
, defusedxml
|
2021-05-20 23:08:51 +00:00
|
|
|
, fetchFromGitHub
|
2022-06-16 17:23:12 +00:00
|
|
|
, freezegun
|
2021-02-05 17:12:51 +00:00
|
|
|
, jsonpickle
|
2021-05-20 23:08:51 +00:00
|
|
|
, munch
|
|
|
|
, pyserial
|
2021-02-05 17:12:51 +00:00
|
|
|
, pytest-aiohttp
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
2021-05-20 23:08:51 +00:00
|
|
|
, python-dateutil
|
2022-05-18 14:49:53 +00:00
|
|
|
, pythonOlder
|
2021-05-20 23:08:51 +00:00
|
|
|
, pytz
|
|
|
|
, semver
|
2021-02-05 17:12:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "plugwise";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "0.31.6";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "setuptools";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = "python-plugwise";
|
2022-04-15 01:41:22 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-mHZuhB0on9uOpsR8R/cMlJMoTNW7ZIPGGd2S/lbT54A=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
async-timeout
|
|
|
|
crcmod
|
|
|
|
defusedxml
|
2021-05-20 23:08:51 +00:00
|
|
|
munch
|
2021-02-05 17:12:51 +00:00
|
|
|
pyserial
|
|
|
|
python-dateutil
|
2021-05-20 23:08:51 +00:00
|
|
|
pytz
|
2021-02-05 17:12:51 +00:00
|
|
|
semver
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-06-16 17:23:12 +00:00
|
|
|
freezegun
|
2021-02-05 17:12:51 +00:00
|
|
|
jsonpickle
|
|
|
|
pytest-aiohttp
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"plugwise"
|
|
|
|
];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python module for Plugwise Smiles, Stretch and USB stick";
|
|
|
|
homepage = "https://github.com/plugwise/python-plugwise";
|
2023-01-11 07:51:40 +00:00
|
|
|
changelog = "https://github.com/plugwise/python-plugwise/releases/tag/v${version}";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|