2022-03-25 22:27:39 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonApplication
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "apc-temp-fetch";
|
2022-12-02 12:46:50 +00:00
|
|
|
version = "0.0.2";
|
2022-03-25 22:27:39 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "APC-Temp-fetch";
|
|
|
|
inherit version;
|
2022-12-02 12:46:50 +00:00
|
|
|
hash = "sha256-lXGj/xrOkdMMYvuyVVSCojjQlzISFUT14VTn//iOARo=";
|
2022-03-25 22:27:39 +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;
|
2023-07-12 10:10:19 +00:00
|
|
|
maintainers = [ maintainers.fogti ];
|
2022-03-25 22:27:39 +00:00
|
|
|
};
|
|
|
|
}
|