mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
0215034f25
when they already rely on SRI hashes.
49 lines
934 B
Nix
49 lines
934 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, isPy3k
|
|
, pytestCheckHook
|
|
, pytest-xdist
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "librouteros";
|
|
version = "3.2.1";
|
|
format = "setuptools";
|
|
|
|
disabled = !isPy3k;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "luqasz";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-VwpZ1RY6Sul7xvWY7ZoOxZ7KgbRmKRwcVdF9e2b3f6Q=";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
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 ];
|
|
};
|
|
}
|