mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
41 lines
720 B
Nix
41 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 = [ ];
|
|
};
|
|
}
|