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:
parent
74c730bd87
commit
27d75c2730
|
@ -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 = [ ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue