3a4df29a92
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
35 lines
699 B
Nix
35 lines
699 B
Nix
{ lib
|
|
, buildPythonApplication
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, requests
|
|
}:
|
|
|
|
buildPythonApplication rec {
|
|
pname = "apc-temp-fetch";
|
|
version = "0.0.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
pname = "APC-Temp-fetch";
|
|
inherit version;
|
|
hash = "sha256-2hNrTrYQadNJWzj7/dDou+a6uI+Ksyrbru9rBqIHXaM=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|