Merge pull request #116265 from fabaff/bump-devolo-home-control-api

This commit is contained in:
Sandro 2021-03-16 12:31:22 +01:00 committed by GitHub
commit c577050b49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 43 additions and 22 deletions

View File

@ -2,28 +2,26 @@
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pytest-cov
, pytest-mock
, pytestCheckHook
, pythonOlder
, requests
, zeroconf
, websocket_client
, pytest-runner
, zeroconf
}:
buildPythonPackage rec {
pname = "devolo-home-control-api";
version = "0.16.0";
version = "0.17.0";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "2Fake";
repo = "devolo_home_control_api";
rev = "v${version}";
sha256 = "19zzdbx0dxlm8pq0yk00nn9gqqblgpp16fgl7z6a98hsa6459zzb";
sha256 = "sha256-g82YmlxlBdyNn7KPU+k+J3/P7ABWMMdLXUpXWnCkdpM=";
};
nativeBuildInputs = [ pytest-runner ];
propagatedBuildInputs = [
requests
zeroconf
@ -32,12 +30,22 @@ buildPythonPackage rec {
checkInputs = [
pytestCheckHook
pytest-cov
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
disabledTests = [ "test__on_pong" ];
disabledTests = [
"test__on_pong"
"TestMprm"
];
pythonImportsCheck = [ "devolo_home_control_api" ];
meta = with lib; {

View File

@ -1,25 +1,33 @@
{ lib, buildPythonPackage, fetchPypi, isPy27
, six
{ lib
, backports_ssl_match_hostname
, buildPythonPackage
, fetchPypi
, isPy27
, pytestCheckHook
, six
}:
buildPythonPackage rec {
version = "0.57.0";
pname = "websocket_client";
version = "0.58.0";
src = fetchPypi {
inherit pname version;
sha256 = "d735b91d6d1692a6a181f2a8c9e0238e5f6373356f561bb9dc4c7af36f452010";
sha256 = "sha256-Y1CbQdFYrlt/Z+tK0g/su07umUNOc+FANU3D/44JcW8=";
};
propagatedBuildInputs = [
six
] ++ lib.optional isPy27 backports_ssl_match_hostname;
checkInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "websocket" ];
meta = with lib; {
description = "Websocket client for python";
description = "Websocket client for Python";
homepage = "https://github.com/websocket-client/websocket-client";
license = licenses.bsd3;
maintainers = with maintainers; [ ];
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -1,4 +1,7 @@
{ lib, python3, fetchFromGitHub }:
{ lib
, python3
, fetchFromGitHub
}:
let
python = python3.override {
@ -24,10 +27,11 @@ let
in python.pkgs.buildPythonApplication rec {
pname = "appdaemon";
version = "4.0.5";
disabled = python.pythonOlder "3.6";
src = fetchFromGitHub {
owner = "home-assistant";
repo = "appdaemon";
owner = "AppDaemon";
repo = pname;
rev = version;
sha256 = "7o6DrTufAC+qK3dDfpkuQMQWuduCZ6Say/knI4Y07QM=";
};
@ -63,12 +67,13 @@ in python.pkgs.buildPythonApplication rec {
--replace "feedparser==5.2.1" "feedparser>=5.2.1" \
--replace "aiohttp_jinja2==1.2.0" "aiohttp_jinja2>=1.2.0" \
--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; {
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;
maintainers = with maintainers; [ peterhoeg dotlambda ];
};