a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
49 lines
980 B
Nix
49 lines
980 B
Nix
{ lib
|
|
, awesomeversion
|
|
, buildPythonPackage
|
|
, aiohttp
|
|
, fetchFromGitHub
|
|
, setuptools
|
|
, pythonOlder
|
|
, packaging
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyswitchbee";
|
|
version = "1.7.21";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jafar-atili";
|
|
repo = "pySwitchbee";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-3Ujs9GgdJm69vb8F00ZWaRgWXxkaPguX5DJ71bqOFec=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
awesomeversion
|
|
packaging
|
|
];
|
|
|
|
# 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/";
|
|
changelog = "https://github.com/jafar-atili/pySwitchbee/releases/tag/${version}";
|
|
license = with licenses; [ asl20 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|