mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 18:26:45 +01:00
44 lines
862 B
Nix
44 lines
862 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, cryptography
|
|
, fetchFromGitHub
|
|
, pytest-asyncio
|
|
, pytest-sugar
|
|
, pytest-timeout
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pylutron-caseta";
|
|
version = "0.10.0";
|
|
disabled = pythonOlder "3.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gurumitts";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-wKnca9sMdjvxxAW5YwLZFK/skmE6QMZG99HZRR3BIzw=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|