forked from mirrors/nixpkgs
python3Packages.librouteros: init at 3.1.0
This commit is contained in:
parent
6e10cf2c1c
commit
f16fcc0ba5
44
pkgs/development/python-modules/librouteros/default.nix
Normal file
44
pkgs/development/python-modules/librouteros/default.nix
Normal file
|
@ -0,0 +1,44 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, isPy3k
|
||||
, pytestCheckHook
|
||||
, pytest-xdist
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "librouteros";
|
||||
version = "3.1.0";
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "luqasz";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1skjwnqa3vcpq9gzgpw93wdmisq15fp0q07kzyq3fgx4yg7b6sql";
|
||||
};
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
|
@ -3704,6 +3704,8 @@ in {
|
|||
|
||||
librosa = callPackage ../development/python-modules/librosa { };
|
||||
|
||||
librouteros = callPackage ../development/python-modules/librouteros { };
|
||||
|
||||
libsass = (callPackage ../development/python-modules/libsass { inherit (pkgs) libsass; });
|
||||
|
||||
libsavitar = callPackage ../development/python-modules/libsavitar { };
|
||||
|
|
Loading…
Reference in a new issue