depot/third_party/nixpkgs/pkgs/development/python-modules/pyzabbix/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

44 lines
921 B
Nix

{
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 ];
};
}