Merge pull request #171724 from dotlambda/qnapstats-init

This commit is contained in:
Martin Weinelt
2022-05-06 01:27:49 +02:00
committed by GitHub
3 changed files with 52 additions and 1 deletions
@@ -0,0 +1,48 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, requests
, xmltodict
, responses
, python
}:
buildPythonPackage rec {
pname = "qnapstats";
version = "0.4.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "colinodell";
repo = "python-qnapstats";
rev = version;
hash = "sha256-Tzi2QG1Xw12fLVfV49SPJKdz5VdJ4hQMuCHH8gxcOBE=";
};
propagatedBuildInputs = [
requests
xmltodict
];
checkInputs = [
responses
];
checkPhase = ''
runHook preCheck
${python.interpreter} tests/test-models.py
runHook postCheck
'';
pythonImportsCheck = [ "qnapstats" ];
meta = {
description = "Python API for obtaining QNAP NAS system stats";
homepage = "https://github.com/colinodell/python-qnapstats";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}
@@ -2091,7 +2091,8 @@
georss-qld-bushfire-alert-client
];
"qnap" = ps: with ps; [
]; # missing inputs: qnapstats
qnapstats
];
"qnap_qsw" = ps: with ps; [
aioqsw
];
+2
View File
@@ -8762,6 +8762,8 @@ in {
qnap-qsw = callPackage ../development/python-modules/qnap-qsw{ };
qnapstats = callPackage ../development/python-modules/qnapstats { };
qrcode = callPackage ../development/python-modules/qrcode { };
qreactor = callPackage ../development/python-modules/qreactor { };