Merge pull request #284462 from fabaff/pylutron-caseta-bump

python311Packages.pylutron-caseta: 0.18.3 -> 0.19.0
This commit is contained in:
Mario Rodas
2024-01-28 09:34:34 -05:00
committed by GitHub
@@ -1,37 +1,50 @@
{ lib
, async-timeout
, buildPythonPackage
, click
, cryptography
, fetchFromGitHub
, hatchling
, pytest-asyncio
, pytest-timeout
, pytestCheckHook
, pythonOlder
, setuptools
, xdg
, zeroconf
}:
buildPythonPackage rec {
pname = "pylutron-caseta";
version = "0.18.3";
format = "pyproject";
version = "0.19.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "gurumitts";
repo = pname;
repo = "pylutron-caseta";
rev = "refs/tags/v${version}";
hash = "sha256-tjmMu7LUne+hLLTXGqHhci9/PZiuQ10mQaARvL2sdIM=";
hash = "sha256-/xTHtzXEFGL2/oP1oVxJj7GO3fSZ5CwjXDdp6OLhlzM=";
};
nativeBuildInputs = [
setuptools
hatchling
];
propagatedBuildInputs = [
cryptography
] ++ lib.optionals (pythonOlder "3.11") [
async-timeout
];
passthru.optional-dependencies = {
cli = [
click
xdg
zeroconf
];
};
nativeCheckInputs = [
pytest-asyncio
pytest-timeout