nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 53 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytest-asyncio, 6 pytest-xdist, 7 pytestCheckHook, 8 poetry-core, 9 toml, 10}: 11 12buildPythonPackage rec { 13 pname = "librouteros"; 14 version = "3.4.1"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "luqasz"; 19 repo = "librouteros"; 20 tag = version; 21 hash = "sha256-vN12LYqFOU7flD6bTFtGw5VhPJ238pZ0MStM3ljwDU4="; 22 }; 23 24 build-system = [ poetry-core ]; 25 26 dependencies = [ toml ]; 27 28 nativeCheckInputs = [ 29 pytest-asyncio 30 pytest-xdist 31 pytestCheckHook 32 ]; 33 34 disabledTests = [ 35 # Disable tests which require QEMU to run 36 "test_login" 37 "test_long_word" 38 "test_query" 39 "test_add_then_remove" 40 "test_add_then_update" 41 "test_generator_ditch" 42 ]; 43 44 pythonImportsCheck = [ "librouteros" ]; 45 46 meta = { 47 description = "Python implementation of the MikroTik RouterOS API"; 48 homepage = "https://librouteros.readthedocs.io/"; 49 changelog = "https://github.com/luqasz/librouteros/blob/${version}/CHANGELOG.rst"; 50 license = lib.licenses.gpl2Only; 51 maintainers = with lib.maintainers; [ fab ]; 52 }; 53}