Files
nixpkgs/pkgs/development/python-modules/librouteros/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

57 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytest-asyncio,
pytest-xdist,
pytestCheckHook,
pythonOlder,
poetry-core,
toml,
}:
buildPythonPackage rec {
pname = "librouteros";
version = "3.4.1";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "luqasz";
repo = "librouteros";
tag = version;
hash = "sha256-vN12LYqFOU7flD6bTFtGw5VhPJ238pZ0MStM3ljwDU4=";
};
build-system = [ poetry-core ];
dependencies = [ toml ];
nativeCheckInputs = [
pytest-asyncio
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 = {
description = "Python implementation of the MikroTik RouterOS API";
homepage = "https://librouteros.readthedocs.io/";
changelog = "https://github.com/luqasz/librouteros/blob/${version}/CHANGELOG.rst";
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ fab ];
};
}