2021-03-15 08:37:03 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, buildPythonPackage
|
2024-01-02 11:29:13 +00:00
|
|
|
, click
|
2021-03-15 08:37:03 +00:00
|
|
|
, fetchFromGitHub
|
2023-11-16 04:20:00 +00:00
|
|
|
, hatchling
|
2021-03-15 08:37:03 +00:00
|
|
|
, pythonOlder
|
2023-11-16 04:20:00 +00:00
|
|
|
, voluptuous
|
2021-03-15 08:37:03 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "evohome-async";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "0.4.19";
|
2023-11-16 04:20:00 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.11";
|
2021-03-15 08:37:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zxdavb";
|
2023-11-16 04:20:00 +00:00
|
|
|
repo = "evohome-async";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-B7LvGXAZO1pd9iCuZjW/bRWdB5PEzfcQjZWokGzMN70=";
|
2021-03-15 08:37:03 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
hatchling
|
|
|
|
];
|
|
|
|
|
2021-03-15 08:37:03 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
2024-01-02 11:29:13 +00:00
|
|
|
click
|
2023-11-16 04:20:00 +00:00
|
|
|
voluptuous
|
2021-03-15 08:37:03 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# Project has no tests
|
|
|
|
doCheck = false;
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"evohomeasync2"
|
|
|
|
];
|
2021-03-15 08:37:03 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python client for connecting to Honeywell's TCC RESTful API";
|
|
|
|
homepage = "https://github.com/zxdavb/evohome-async";
|
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "evo-client";
|
2021-03-15 08:37:03 +00:00
|
|
|
};
|
|
|
|
}
|