2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiohttp,
|
|
|
|
async-timeout,
|
|
|
|
buildPythonPackage,
|
|
|
|
crcmod,
|
|
|
|
defusedxml,
|
|
|
|
fetchFromGitHub,
|
|
|
|
freezegun,
|
|
|
|
jsonpickle,
|
|
|
|
munch,
|
|
|
|
pyserial,
|
|
|
|
pytest-aiohttp,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytestCheckHook,
|
|
|
|
python-dateutil,
|
|
|
|
pythonOlder,
|
|
|
|
semver,
|
|
|
|
setuptools,
|
|
|
|
wheel,
|
2021-02-05 17:12:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "plugwise";
|
2024-06-24 18:47:55 +00:00
|
|
|
version = "0.37.4.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
pyproject = true;
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
disabled = pythonOlder "3.11";
|
2022-05-18 14:49:53 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
src = fetchFromGitHub {
|
2024-01-02 11:29:13 +00:00
|
|
|
owner = "plugwise";
|
2021-02-05 17:12:51 +00:00
|
|
|
repo = "python-plugwise";
|
2022-04-15 01:41:22 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-06-24 18:47:55 +00:00
|
|
|
hash = "sha256-4B/rnwrkeridIgMD8gUVYXYVbrmQhQqDOa8Ot1ae/Ls=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
postPatch = ''
|
2024-04-21 15:54:59 +00:00
|
|
|
# setuptools
|
|
|
|
sed -i -e "s/~=[0-9.]*//" pyproject.toml
|
|
|
|
# wheel
|
|
|
|
sed -i -e "s/~=[0-9.]*//" pyproject.toml
|
2024-01-02 11:29:13 +00:00
|
|
|
'';
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [
|
2024-01-02 11:29:13 +00:00
|
|
|
setuptools
|
|
|
|
wheel
|
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
2021-02-05 17:12:51 +00:00
|
|
|
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
|
|
|
|
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
|
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +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 ];
|
|
|
|
};
|
|
|
|
}
|