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 }: { lib
let , fetchFromGitHub
pythonPackages = python2Packages; , python3
}:
in pythonPackages.buildPythonApplication rec { python3.pkgs.buildPythonApplication rec {
pname = "zabbix-cli"; pname = "zabbix-cli";
version = "2.2.1"; version = "2.2.1";
format = "setuptools";
propagatedBuildInputs = with pythonPackages; [ ipaddr requests ];
# argparse is part of the standardlib
prePatch = ''
substituteInPlace setup.py --replace "'argparse'," ""
'';
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "usit-gd"; owner = "usit-gd";
@ -20,10 +15,24 @@ in pythonPackages.buildPythonApplication rec {
sha256 = "0wzmrn8p09ksqhhgawr179c4az7p2liqr0l4q2dra62bxliawyqz"; 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; { meta = with lib; {
description = "Command-line interface for Zabbix"; description = "Command-line interface for Zabbix";
homepage = src.meta.homepage; homepage = "https://github.com/unioslo/zabbix-cli";
license = [ licenses.gpl3 ]; license = licenses.gpl3Plus;
maintainers = [ maintainers.womfoo ]; maintainers = [ ];
}; };
} }