2022-10-30 15:09:59 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, aiohttp
|
|
|
|
, fetchFromGitHub
|
|
|
|
, setuptools
|
|
|
|
, pythonOlder
|
2023-01-11 07:51:40 +00:00
|
|
|
, packaging
|
2022-10-30 15:09:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyswitchbee";
|
2023-01-11 07:51:40 +00:00
|
|
|
version = "1.7.18";
|
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-01-11 07:51:40 +00:00
|
|
|
hash = "sha256-LQjtePFSMvZdAGH6f8CveaE7ASm/x9GuFj9s3TipYHQ=";
|
2022-10-30 15:09:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
2023-01-11 07:51:40 +00:00
|
|
|
packaging
|
2022-10-30 15:09:59 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# Module doesn't have tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"switchbee"
|
|
|
|
];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|