My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/librouteros/default.nix

48 lines
930 B

{ lib
, buildPythonPackage
, fetchFromGitHub
, isPy3k
, pytestCheckHook
, pytest-xdist
}:
buildPythonPackage rec {
pname = "librouteros";
version = "3.2.0";
format = "setuptools";
disabled = !isPy3k;
src = fetchFromGitHub {
owner = "luqasz";
repo = pname;
rev = version;
sha256 = "sha256-Zo9HCjYe9cCkqXhikAjDQKQXGkrMni3f+9KoqhZskNk=";
};
checkInputs = [
pytest-xdist
pytestCheckHook
];
disabledTests = [
# Disable tests which require QEMU to run
"test_login"
"test_long_word"
"test_query"
"test_add_then_remove"
"test_add_then_update"
"test_generator_ditch"
];
pythonImportsCheck = [
"librouteros"
];
meta = with lib; {
description = "Python implementation of the MikroTik RouterOS API";
homepage = "https://librouteros.readthedocs.io/";
license = with licenses; [ gpl2Only ];
maintainers = with maintainers; [ fab ];
};
}