depot/third_party/nixpkgs/pkgs/development/python-modules/pyswitchbee/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

46 lines
977 B
Nix

{
lib,
awesomeversion,
buildPythonPackage,
aiohttp,
fetchFromGitHub,
setuptools,
pythonOlder,
packaging,
}:
buildPythonPackage rec {
pname = "pyswitchbee";
version = "1.8.0";
format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "jafar-atili";
repo = "pySwitchbee";
rev = "refs/tags/${version}";
hash = "sha256-bMxWrapFX689yvC6+9NUunEtTe79+QNauFa1ZjG9ON4=";
};
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 ];
};
}