depot/third_party/nixpkgs/pkgs/development/python-modules/pylutron-caseta/default.nix
Default email 2495e3f88b Project import generated by Copybara.
GitOrigin-RevId: 78cd22c1b8604de423546cd49bfe264b786eca13
2022-01-03 17:56:52 +01:00

47 lines
894 B
Nix

{ lib
, buildPythonPackage
, cryptography
, fetchFromGitHub
, pytest-asyncio
, pytest-sugar
, pytest-timeout
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pylutron-caseta";
version = "0.13.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "gurumitts";
repo = pname;
rev = "v${version}";
sha256 = "sha256-pVBFlGguVN6b3YY2lFF8KG83tBuotLmWLq/dKjRKAUQ=";
};
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 ];
};
}