depot/third_party/nixpkgs/pkgs/development/python-modules/pyzabbix/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

47 lines
924 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 ];
};
}