mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
python3Packages.qnapstats: init at 0.4.0
This commit is contained in:
parent
e237f3e459
commit
09c5faf7b5
48
pkgs/development/python-modules/qnapstats/default.nix
Normal file
48
pkgs/development/python-modules/qnapstats/default.nix
Normal file
@ -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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user