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
|
2021-02-05 17:12:51 +00:00
|
|
|
, mypy
|
2021-05-20 23:08:51 +00:00
|
|
|
, 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";
|
2022-10-06 18:32:54 +00:00
|
|
|
version = "0.24.0";
|
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}";
|
2022-10-06 18:32:54 +00:00
|
|
|
sha256 = "sha256-WoXBUUe/2XX+CgoZB1o2sj2FIoWS6ECikJWrUSreJUY=";
|
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
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2022-06-16 17:23:12 +00:00
|
|
|
freezegun
|
2021-02-05 17:12:51 +00:00
|
|
|
jsonpickle
|
|
|
|
mypy
|
|
|
|
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";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|