2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytest-mock
|
2021-03-19 17:17:44 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2021-02-05 17:12:51 +00:00
|
|
|
, requests
|
2022-02-10 20:34:41 +00:00
|
|
|
, setuptools-scm
|
2021-06-28 23:13:55 +00:00
|
|
|
, websocket-client
|
2021-03-19 17:17:44 +00:00
|
|
|
, zeroconf
|
2021-02-05 17:12:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "devolo-home-control-api";
|
2021-07-04 02:40:35 +00:00
|
|
|
version = "0.17.4";
|
2021-03-19 17:17:44 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "2Fake";
|
|
|
|
repo = "devolo_home_control_api";
|
|
|
|
rev = "v${version}";
|
2021-07-04 02:40:35 +00:00
|
|
|
sha256 = "sha256-N/48Q2IEL194vCzrPPuy+mRNejXfkoXy2t2oe0Y6ug4=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
zeroconf
|
2021-06-28 23:13:55 +00:00
|
|
|
websocket-client
|
2021-02-05 17:12:51 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-mock
|
|
|
|
];
|
|
|
|
|
|
|
|
# Disable test that requires network access
|
2021-03-19 17:17:44 +00:00
|
|
|
disabledTests = [
|
|
|
|
"test__on_pong"
|
|
|
|
"TestMprm"
|
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
pythonImportsCheck = [ "devolo_home_control_api" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library to work with devolo Home Control";
|
|
|
|
homepage = "https://github.com/2Fake/devolo_home_control_api";
|
|
|
|
license = with licenses; [ gpl3Only ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|