Merge pull request #117298 from fabaff/pydeconz

This commit is contained in:
Martin Weinelt 2021-03-23 01:51:05 +01:00 committed by GitHub
commit 55b7888f43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 45 additions and 1 deletions

View File

@ -0,0 +1,41 @@
{ lib
, aiohttp
, aioresponses
, buildPythonPackage
, fetchFromGitHub
, pytest-asyncio
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pydeconz";
version = "77";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "Kane610";
repo = "deconz";
rev = "v${version}";
sha256 = "0qpipw3si3a23c3nafagfx3zl3v481ha8yakcz1d42mbwsc6hkk4";
};
propagatedBuildInputs = [
aiohttp
];
checkInputs = [
aioresponses
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [ "pydeconz" ];
meta = with lib; {
description = "Python library wrapping the Deconz REST API";
homepage = "https://github.com/Kane610/deconz";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -151,7 +151,7 @@
"datadog" = ps: with ps; [ datadog ];
"ddwrt" = ps: with ps; [ ];
"debugpy" = ps: with ps; [ debugpy ];
"deconz" = ps: with ps; [ ]; # missing inputs: pydeconz
"deconz" = ps: with ps; [ pydeconz ];
"decora" = ps: with ps; [ bluepy ]; # missing inputs: decora
"decora_wifi" = ps: with ps; [ ]; # missing inputs: decora_wifi
"default_config" = ps: with ps; [ pynacl aiohttp-cors async-upnp-client defusedxml distro emoji hass-nabucasa netdisco pillow scapy sqlalchemy zeroconf ];

View File

@ -193,6 +193,7 @@ in with py.pkgs; buildPythonApplication rec {
"conversation"
"counter"
"cover"
"deconz"
"default_config"
"demo"
"derivative"

View File

@ -5608,6 +5608,8 @@ in {
pydbus = callPackage ../development/python-modules/pydbus { };
pydeconz = callPackage ../development/python-modules/pydeconz { };
pydenticon = callPackage ../development/python-modules/pydenticon { };
pydexcom = callPackage ../development/python-modules/pydexcom { };