2022-06-16 17:23:12 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonApplication
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "apc-temp-fetch";
|
2022-12-17 10:02:37 +00:00
|
|
|
version = "0.0.2";
|
2022-06-16 17:23:12 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "APC-Temp-fetch";
|
|
|
|
inherit version;
|
2022-12-17 10:02:37 +00:00
|
|
|
hash = "sha256-lXGj/xrOkdMMYvuyVVSCojjQlzISFUT14VTn//iOARo=";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"APC_Temp_fetch"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "unified temperature fetcher interface to several UPS network adapters";
|
|
|
|
homepage = "https://github.com/YZITE/APC_Temp_fetch";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.zseri ];
|
|
|
|
};
|
|
|
|
}
|