2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
awesomeversion,
|
|
|
|
buildPythonPackage,
|
|
|
|
aiohttp,
|
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools,
|
|
|
|
pythonOlder,
|
|
|
|
packaging,
|
2022-10-30 15:09:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyswitchbee";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "1.8.0";
|
2022-10-30 15:09:59 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jafar-atili";
|
|
|
|
repo = "pySwitchbee";
|
|
|
|
rev = "refs/tags/${version}";
|
2023-05-24 13:37:59 +00:00
|
|
|
hash = "sha256-bMxWrapFX689yvC6+9NUunEtTe79+QNauFa1ZjG9ON4=";
|
2022-10-30 15:09:59 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2022-10-30 15:09:59 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
2023-02-02 18:25:31 +00:00
|
|
|
awesomeversion
|
2023-01-11 07:51:40 +00:00
|
|
|
packaging
|
2022-10-30 15:09:59 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# Module doesn't have tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "switchbee" ];
|
2022-10-30 15:09:59 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Library to control SwitchBee smart home device";
|
|
|
|
homepage = "https://github.com/jafar-atili/pySwitchbee/";
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/jafar-atili/pySwitchbee/releases/tag/${version}";
|
2022-11-02 22:02:43 +00:00
|
|
|
license = with licenses; [ asl20 ];
|
2022-10-30 15:09:59 +00:00
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|