depot/third_party/nixpkgs/pkgs/development/python-modules/pylutron-caseta/default.nix
Default email ca5ab3a501 Project import generated by Copybara.
GitOrigin-RevId: 4a01ca36d6bfc133bc617e661916a81327c9bbc8
2022-07-14 08:49:19 -04:00

47 lines
891 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
];
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 ];
};
}