nixpkgs/pkgs/development/python-modules/pyswitchbee/default.nix

48 lines
944 B
Nix

{ lib
, buildPythonPackage
, aiohttp
, fetchFromGitHub
, setuptools
, pythonOlder
, packaging
}:
buildPythonPackage rec {
pname = "pyswitchbee";
version = "1.7.18";
format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "jafar-atili";
repo = "pySwitchbee";
rev = "refs/tags/${version}";
hash = "sha256-LQjtePFSMvZdAGH6f8CveaE7ASm/x9GuFj9s3TipYHQ=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
aiohttp
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 ];
};
}