3
0
Fork 0
forked from mirrors/nixpkgs

zabbix-cli: use python3, enable tests, remove maintainer

The maintainer hasn't interacted with this package since it was
introduced in 2017.
This commit is contained in:
Martin Weinelt 2022-01-02 02:47:43 +01:00
parent 74c730bd87
commit 27d75c2730
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -1,17 +1,12 @@
{ fetchFromGitHub, lib, python2Packages }:
let
pythonPackages = python2Packages;
{ lib
, fetchFromGitHub
, python3
}:
in pythonPackages.buildPythonApplication rec {
python3.pkgs.buildPythonApplication rec {
pname = "zabbix-cli";
version = "2.2.1";
propagatedBuildInputs = with pythonPackages; [ ipaddr requests ];
# argparse is part of the standardlib
prePatch = ''
substituteInPlace setup.py --replace "'argparse'," ""
'';
format = "setuptools";
src = fetchFromGitHub {
owner = "usit-gd";
@ -20,10 +15,24 @@ in pythonPackages.buildPythonApplication rec {
sha256 = "0wzmrn8p09ksqhhgawr179c4az7p2liqr0l4q2dra62bxliawyqz";
};
propagatedBuildInputs = with python3.pkgs; [
requests
];
checkInputs = with python3.pkgs; [
pytestCheckHook
];
disabledTests = [
# TypeError: option values must be strings
"test_descriptor_del"
"test_initialize"
];
meta = with lib; {
description = "Command-line interface for Zabbix";
homepage = src.meta.homepage;
license = [ licenses.gpl3 ];
maintainers = [ maintainers.womfoo ];
homepage = "https://github.com/unioslo/zabbix-cli";
license = licenses.gpl3Plus;
maintainers = [ ];
};
}