depot/third_party/nixpkgs/pkgs/tools/networking/apc-temp-fetch/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

40 lines
720 B
Nix

{ lib
, buildPythonApplication
, fetchPypi
, pythonOlder
, requests
, setuptools
}:
buildPythonApplication rec {
pname = "apc-temp-fetch";
version = "0.0.2";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchPypi {
pname = "APC-Temp-fetch";
inherit version;
hash = "sha256-lXGj/xrOkdMMYvuyVVSCojjQlzISFUT14VTn//iOARo=";
};
build-system = [
setuptools
];
dependencies = [
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 = [ ];
};
}