2023-02-02 18:25:31 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2023-07-15 17:15:38 +00:00
|
|
|
, bx-py-utils
|
|
|
|
, colorlog
|
2023-02-02 18:25:31 +00:00
|
|
|
, fetchFromGitHub
|
2023-07-15 17:15:38 +00:00
|
|
|
, importlib-resources
|
2023-08-04 22:07:22 +00:00
|
|
|
, jaraco-classes
|
|
|
|
, jaraco-collections
|
|
|
|
, jaraco-itertools
|
2023-02-02 18:25:31 +00:00
|
|
|
, jaraco-context
|
|
|
|
, jaraco-net
|
2023-07-15 17:15:38 +00:00
|
|
|
, keyring
|
|
|
|
, lomond
|
2023-02-02 18:25:31 +00:00
|
|
|
, more-itertools
|
|
|
|
, platformdirs
|
|
|
|
, pytestCheckHook
|
2023-07-15 17:15:38 +00:00
|
|
|
, pythonOlder
|
|
|
|
, requests
|
2023-02-02 18:25:31 +00:00
|
|
|
, requests-mock
|
2023-07-15 17:15:38 +00:00
|
|
|
, requests-toolbelt
|
|
|
|
, setuptools
|
|
|
|
, setuptools-scm
|
2023-02-02 18:25:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jaraco-abode";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "5.1.1";
|
|
|
|
pyproject = true;
|
2023-02-02 18:25:31 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jaraco";
|
|
|
|
repo = "jaraco.abode";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-TUxljF1k/fvQoNcHx6jMRJrYgzxjXefvMl+mBD0DL8o=";
|
2023-02-02 18:25:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
lomond
|
|
|
|
colorlog
|
|
|
|
keyring
|
|
|
|
requests-toolbelt
|
2023-08-04 22:07:22 +00:00
|
|
|
jaraco-collections
|
2023-02-02 18:25:31 +00:00
|
|
|
jaraco-context
|
2023-08-04 22:07:22 +00:00
|
|
|
jaraco-classes
|
2023-02-02 18:25:31 +00:00
|
|
|
jaraco-net
|
|
|
|
more-itertools
|
|
|
|
importlib-resources
|
|
|
|
bx-py-utils
|
|
|
|
platformdirs
|
2023-08-04 22:07:22 +00:00
|
|
|
jaraco-itertools
|
2023-02-02 18:25:31 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
requests-mock
|
|
|
|
];
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"jaraco.abode"
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
preCheck = ''
|
|
|
|
export HOME=$TEMP
|
|
|
|
'';
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
"_cookie_string"
|
|
|
|
"test_cookies"
|
|
|
|
"test_empty_cookies"
|
|
|
|
"test_invalid_cookies"
|
2023-07-15 17:15:38 +00:00
|
|
|
# Issue with the regex
|
|
|
|
"test_camera_capture_no_control_URLs"
|
2023-02-02 18:25:31 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2023-07-15 17:15:38 +00:00
|
|
|
changelog = "https://github.com/jaraco/jaraco.abode/blob/${version}/CHANGES.rst";
|
2023-02-02 18:25:31 +00:00
|
|
|
homepage = "https://github.com/jaraco/jaraco.abode";
|
|
|
|
description = "Library interfacing to the Abode home security system";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "abode";
|
2023-02-02 18:25:31 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jamiemagee dotlambda ];
|
|
|
|
};
|
|
|
|
}
|