nixpkgs/pkgs/tools/networking/apc-temp-fetch/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
699 B
Nix
Raw Normal View History

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;
maintainers = [ maintainers.zseri ];
};
}