Merge pull request #116265 from fabaff/bump-devolo-home-control-api
This commit is contained in:
commit
c577050b49
@ -2,28 +2,26 @@
|
|||||||
, aiohttp
|
, aiohttp
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, pytestCheckHook
|
|
||||||
, pytest-cov
|
|
||||||
, pytest-mock
|
, pytest-mock
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
, requests
|
, requests
|
||||||
, zeroconf
|
|
||||||
, websocket_client
|
, websocket_client
|
||||||
, pytest-runner
|
, zeroconf
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "devolo-home-control-api";
|
pname = "devolo-home-control-api";
|
||||||
version = "0.16.0";
|
version = "0.17.0";
|
||||||
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "2Fake";
|
owner = "2Fake";
|
||||||
repo = "devolo_home_control_api";
|
repo = "devolo_home_control_api";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "19zzdbx0dxlm8pq0yk00nn9gqqblgpp16fgl7z6a98hsa6459zzb";
|
sha256 = "sha256-g82YmlxlBdyNn7KPU+k+J3/P7ABWMMdLXUpXWnCkdpM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pytest-runner ];
|
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
requests
|
requests
|
||||||
zeroconf
|
zeroconf
|
||||||
@ -32,12 +30,22 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
pytest-cov
|
|
||||||
pytest-mock
|
pytest-mock
|
||||||
];
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
# setup.py is not able to detect the version with setuptools_scm
|
||||||
|
substituteInPlace setup.py \
|
||||||
|
--replace "setuptools_scm" "" \
|
||||||
|
--replace 'use_scm_version=True' 'use_scm_version="${version}"'
|
||||||
|
'';
|
||||||
|
|
||||||
# Disable test that requires network access
|
# Disable test that requires network access
|
||||||
disabledTests = [ "test__on_pong" ];
|
disabledTests = [
|
||||||
|
"test__on_pong"
|
||||||
|
"TestMprm"
|
||||||
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "devolo_home_control_api" ];
|
pythonImportsCheck = [ "devolo_home_control_api" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
@ -1,25 +1,33 @@
|
|||||||
{ lib, buildPythonPackage, fetchPypi, isPy27
|
{ lib
|
||||||
, six
|
|
||||||
, backports_ssl_match_hostname
|
, backports_ssl_match_hostname
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, isPy27
|
||||||
|
, pytestCheckHook
|
||||||
|
, six
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
version = "0.57.0";
|
|
||||||
pname = "websocket_client";
|
pname = "websocket_client";
|
||||||
|
version = "0.58.0";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "d735b91d6d1692a6a181f2a8c9e0238e5f6373356f561bb9dc4c7af36f452010";
|
sha256 = "sha256-Y1CbQdFYrlt/Z+tK0g/su07umUNOc+FANU3D/44JcW8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
six
|
six
|
||||||
] ++ lib.optional isPy27 backports_ssl_match_hostname;
|
] ++ lib.optional isPy27 backports_ssl_match_hostname;
|
||||||
|
|
||||||
|
checkInputs = [ pytestCheckHook ];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "websocket" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Websocket client for python";
|
description = "Websocket client for Python";
|
||||||
homepage = "https://github.com/websocket-client/websocket-client";
|
homepage = "https://github.com/websocket-client/websocket-client";
|
||||||
license = licenses.bsd3;
|
license = licenses.lgpl21Plus;
|
||||||
maintainers = with maintainers; [ ];
|
maintainers = with maintainers; [ fab ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
{ lib, python3, fetchFromGitHub }:
|
{ lib
|
||||||
|
, python3
|
||||||
|
, fetchFromGitHub
|
||||||
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
python = python3.override {
|
python = python3.override {
|
||||||
@ -24,10 +27,11 @@ let
|
|||||||
in python.pkgs.buildPythonApplication rec {
|
in python.pkgs.buildPythonApplication rec {
|
||||||
pname = "appdaemon";
|
pname = "appdaemon";
|
||||||
version = "4.0.5";
|
version = "4.0.5";
|
||||||
|
disabled = python.pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "home-assistant";
|
owner = "AppDaemon";
|
||||||
repo = "appdaemon";
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "7o6DrTufAC+qK3dDfpkuQMQWuduCZ6Say/knI4Y07QM=";
|
sha256 = "7o6DrTufAC+qK3dDfpkuQMQWuduCZ6Say/knI4Y07QM=";
|
||||||
};
|
};
|
||||||
@ -63,12 +67,13 @@ in python.pkgs.buildPythonApplication rec {
|
|||||||
--replace "feedparser==5.2.1" "feedparser>=5.2.1" \
|
--replace "feedparser==5.2.1" "feedparser>=5.2.1" \
|
||||||
--replace "aiohttp_jinja2==1.2.0" "aiohttp_jinja2>=1.2.0" \
|
--replace "aiohttp_jinja2==1.2.0" "aiohttp_jinja2>=1.2.0" \
|
||||||
--replace "pygments==2.6.1" "pygments>=2.6.1" \
|
--replace "pygments==2.6.1" "pygments>=2.6.1" \
|
||||||
--replace "paho-mqtt==1.5.0" "paho-mqtt>=1.5.0"
|
--replace "paho-mqtt==1.5.0" "paho-mqtt>=1.5.0" \
|
||||||
|
--replace "websocket-client==0.57.0" "websocket-client>=0.57.0"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Sandboxed Python execution environment for writing automation apps for Home Assistant";
|
description = "Sandboxed Python execution environment for writing automation apps for Home Assistant";
|
||||||
homepage = "https://github.com/home-assistant/appdaemon";
|
homepage = "https://github.com/AppDaemon/appdaemon";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ peterhoeg dotlambda ];
|
maintainers = with maintainers; [ peterhoeg dotlambda ];
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user