mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
Merge pull request #128128 from dotlambda/pysiaalarm-init
home-assistant: support sia component
This commit is contained in:
commit
ff5da29a3f
@ -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 = [
|
||||
|
54
pkgs/development/python-modules/pysiaalarm/default.nix
Normal file
54
pkgs/development/python-modules/pysiaalarm/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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
|
||||
|
@ -627,6 +627,7 @@ in with py.pkgs; buildPythonApplication rec {
|
||||
"shell_command"
|
||||
"shelly"
|
||||
"shopping_list"
|
||||
"sia"
|
||||
"sigfox"
|
||||
"sighthound"
|
||||
"simplisafe"
|
||||
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user