Merge pull request #119138 from fabaff/pylutron-caseta
commit
62ce5aa19a
@ -0,0 +1,36 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, fetchFromGitHub |
||||
, pytestCheckHook |
||||
, pythonOlder |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "aiolip"; |
||||
version = "1.1.4"; |
||||
disabled = pythonOlder "3.5"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "bdraco"; |
||||
repo = pname; |
||||
rev = version; |
||||
sha256 = "1f8mlvbnfcn3sigsmjdpdpgxmnbvcjhfr7lzch61i8sy25dgakji"; |
||||
}; |
||||
|
||||
checkInputs = [ |
||||
pytestCheckHook |
||||
]; |
||||
|
||||
postPatch = '' |
||||
substituteInPlace setup.py --replace "'pytest-runner'," "" |
||||
''; |
||||
|
||||
pythonImportsCheck = [ "aiolip" ]; |
||||
|
||||
meta = with lib; { |
||||
description = "Python module for the Lutron Integration Protocol"; |
||||
homepage = "https://github.com/bdraco/aiolip"; |
||||
license = with licenses; [ asl20 ]; |
||||
maintainers = with maintainers; [ fab ]; |
||||
}; |
||||
} |
@ -0,0 +1,43 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, cryptography |
||||
, fetchFromGitHub |
||||
, pytest-asyncio |
||||
, pytest-sugar |
||||
, pytest-timeout |
||||
, pytestCheckHook |
||||
, pythonOlder |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "pylutron-caseta"; |
||||
version = "0.9.0"; |
||||
disabled = pythonOlder "3.5"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "gurumitts"; |
||||
repo = pname; |
||||
rev = "v${version}"; |
||||
sha256 = "07mz4hn0455qmfqs4xcqlhbf3qvrnmifd0vzpcqlqaqcn009iahq"; |
||||
}; |
||||
|
||||
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 ]; |
||||
}; |
||||
} |
Loading…
Reference in new issue