depot/third_party/nixpkgs/pkgs/development/python-modules/pylutron-caseta/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

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 ];
};
}