02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
51 lines
948 B
Nix
51 lines
948 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, cryptography
|
|
, fetchFromGitHub
|
|
, pytest-asyncio
|
|
, pytest-sugar
|
|
, pytest-timeout
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pylutron-caseta";
|
|
version = "0.14.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gurumitts";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-D1P4roUZ+byU031RtdwIOR/ncxY9wl9UqCKVb/XPGVk=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
cryptography
|
|
];
|
|
|
|
checkInputs = [
|
|
pytest-asyncio
|
|
pytest-sugar
|
|
pytest-timeout
|
|
pytestCheckHook
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
"--asyncio-mode=legacy"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"pylutron_caseta"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python module o control Lutron Caseta devices";
|
|
homepage = "https://github.com/gurumitts/pylutron-caseta";
|
|
license = with licenses; [ asl20 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|