Merge pull request #128128 from dotlambda/pysiaalarm-init

home-assistant: support sia component
This commit is contained in:
Fabian Affolter 2021-06-26 09:58:48 +02:00 committed by GitHub
commit ff5da29a3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 60 additions and 3 deletions

View file

@ -11,13 +11,13 @@
buildPythonPackage rec {
pname = "dataclasses-json";
version = "0.5.2";
version = "0.5.4";
src = fetchFromGitHub {
owner = "lidatong";
repo = pname;
rev = "v${version}";
sha256 = "1gcnm41rwg0jvq4vhr57vv9hyasws425zl8h4p05x2nzq86l0w1n";
sha256 = "193xklf1xrsin7fr24yqx5ckr4m5s9v1bdyr00qr51j74hiy8qsv";
};
propagatedBuildInputs = [

View file

@ -0,0 +1,54 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, dataclasses-json
, pycryptodome
, setuptools
, pytest-asyncio
, pytest-cases
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pysiaalarm";
version = "3.0.0";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
sha256 = "b1c3a3d48d399bc91014167f59b23af601044d182db9267c23a9cf3559922122";
};
postPatch = ''
substituteInPlace setup.cfg \
--replace "==" ">="
substituteInPlace pytest.ini \
--replace "--cov pysiaalarm --cov-report term-missing" ""
'';
propagatedBuildInputs = [
dataclasses-json
pycryptodome
setuptools
];
checkInputs = [
pytest-asyncio
pytest-cases
pytestCheckHook
];
pythonImportsCheck = [
"pysiaalarm"
"pysiaalarm.aio"
];
meta = with lib; {
description = "Python package for creating a client that talks with SIA-based alarm systems";
homepage = "https://github.com/eavanvalkenburg/pysiaalarm";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}

View file

@ -750,7 +750,7 @@
"shodan" = ps: with ps; [ shodan ];
"shopping_list" = ps: with ps; [ aiohttp-cors ];
"sht31" = ps: with ps; [ ]; # missing inputs: Adafruit-GPIO Adafruit-SHT31
"sia" = ps: with ps; [ ]; # missing inputs: pysiaalarm
"sia" = ps: with ps; [ pysiaalarm ];
"sigfox" = ps: with ps; [ ];
"sighthound" = ps: with ps; [ pillow simplehound ];
"signal_messenger" = ps: with ps; [ ]; # missing inputs: pysignalclirestapi

View file

@ -627,6 +627,7 @@ in with py.pkgs; buildPythonApplication rec {
"shell_command"
"shelly"
"shopping_list"
"sia"
"sigfox"
"sighthound"
"simplisafe"

View file

@ -5325,6 +5325,8 @@ in {
pyshark = callPackage ../development/python-modules/pyshark { };
pysiaalarm = callPackage ../development/python-modules/pysiaalarm { };
pytest-subprocess = callPackage ../development/python-modules/pytest-subprocess { };
python-codon-tables = callPackage ../development/python-modules/python-codon-tables { };