2022-02-10 20:34:41 +00:00
|
|
|
{ lib
|
2022-03-05 16:20:37 +00:00
|
|
|
, aenum
|
2022-02-10 20:34:41 +00:00
|
|
|
, aiohttp
|
2022-10-30 15:09:59 +00:00
|
|
|
, asynctest
|
2022-02-10 20:34:41 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pydantic
|
2022-10-30 15:09:59 +00:00
|
|
|
, pytest-mock
|
2022-02-10 20:34:41 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "intellifire4py";
|
2022-12-17 10:02:37 +00:00
|
|
|
version = "2.2.2";
|
2022-02-10 20:34:41 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jeeftor";
|
|
|
|
repo = pname;
|
2022-12-17 10:02:37 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-iqlKfpnETLqQwy5sNcK2x/TgmuN2hCfYoHEFK2WWVXI=";
|
2022-02-10 20:34:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-03-05 16:20:37 +00:00
|
|
|
aenum
|
2022-02-10 20:34:41 +00:00
|
|
|
aiohttp
|
|
|
|
pydantic
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2022-10-30 15:09:59 +00:00
|
|
|
asynctest
|
|
|
|
pytest-mock
|
2022-02-10 20:34:41 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Test file is missing
|
|
|
|
"test_json_files"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"intellifire4py"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Module to read Intellifire fireplace status data";
|
|
|
|
homepage = "https://github.com/jeeftor/intellifire4py";
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/jeeftor/intellifire4py/blob/${version}/CHANGELOG";
|
2022-02-10 20:34:41 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|