python311Packages.pyzabbix: init at 1.3.1
Module to interact with the Zabbix API https://github.com/lukecyca/pyzabbix
This commit is contained in:
parent
868769dc6c
commit
bae96abd05
2 changed files with 49 additions and 0 deletions
47
pkgs/development/python-modules/pyzabbix/default.nix
Normal file
47
pkgs/development/python-modules/pyzabbix/default.nix
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, packaging
|
||||||
|
, pythonOlder
|
||||||
|
, requests
|
||||||
|
, setuptools
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "pyzabbix";
|
||||||
|
version = "1.3.1";
|
||||||
|
pyproject = true;
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "lukecyca";
|
||||||
|
repo = "pyzabbix";
|
||||||
|
rev = "refs/tags/${version}";
|
||||||
|
hash = "sha256-2yCbxPUlbTrtjD9eKmkw0fKnjiwPzmjIo5vKGv4aerU=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
setuptools
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
packaging
|
||||||
|
requests
|
||||||
|
];
|
||||||
|
|
||||||
|
# Tests require a running Zabbix instance
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"pyzabbix"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Module to interact with the Zabbix API";
|
||||||
|
homepage = "https://github.com/lukecyca/pyzabbix";
|
||||||
|
changelog = "https://github.com/lukecyca/pyzabbix/blob/${version}/CHANGELOG.md";
|
||||||
|
license = licenses.lgpl21Only;
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -12134,6 +12134,8 @@ self: super: with self; {
|
||||||
|
|
||||||
pyyardian = callPackage ../development/python-modules/pyyardian { };
|
pyyardian = callPackage ../development/python-modules/pyyardian { };
|
||||||
|
|
||||||
|
pyzabbix = callPackage ../development/python-modules/pyzabbix { };
|
||||||
|
|
||||||
pyzerproc = callPackage ../development/python-modules/pyzerproc { };
|
pyzerproc = callPackage ../development/python-modules/pyzerproc { };
|
||||||
|
|
||||||
pyzmq = callPackage ../development/python-modules/pyzmq { };
|
pyzmq = callPackage ../development/python-modules/pyzmq { };
|
||||||
|
|
Loading…
Reference in a new issue