Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 44 lines 899 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, isPy3k 5, pytestCheckHook 6, pytest-xdist 7}: 8 9buildPythonPackage rec { 10 pname = "librouteros"; 11 version = "3.1.0"; 12 disabled = !isPy3k; 13 14 src = fetchFromGitHub { 15 owner = "luqasz"; 16 repo = pname; 17 rev = version; 18 sha256 = "1skjwnqa3vcpq9gzgpw93wdmisq15fp0q07kzyq3fgx4yg7b6sql"; 19 }; 20 21 checkInputs = [ 22 pytest-xdist 23 pytestCheckHook 24 ]; 25 26 disabledTests = [ 27 # Disable tests which require QEMU to run 28 "test_login" 29 "test_long_word" 30 "test_query" 31 "test_add_then_remove" 32 "test_add_then_update" 33 "test_generator_ditch" 34 ]; 35 36 pythonImportsCheck = [ "librouteros" ]; 37 38 meta = with lib; { 39 description = "Python implementation of the MikroTik RouterOS API"; 40 homepage = "https://librouteros.readthedocs.io/"; 41 license = with licenses; [ gpl2Only ]; 42 maintainers = with maintainers; [ fab ]; 43 }; 44}