1{ lib 2, buildPythonPackage 3, fetchPypi 4, pyroute2-core 5}: 6 7buildPythonPackage rec { 8 pname = "pyroute2-core"; 9 version = "0.6.5"; 10 11 src = fetchPypi { 12 pname = "pyroute2.core"; 13 inherit version; 14 sha256 = "sha256-Jm10Dq5A+mTdBFQfAH0022ls7PMVTLpb4w+nWmfUOFI="; 15 }; 16 17 # pyroute2 sub-modules have no tests 18 doCheck = false; 19 20 pythonImportsCheck = [ 21 "pr2modules.common" 22 "pr2modules.config" 23 "pr2modules.proxy" 24 ]; 25 26 meta = with lib; { 27 description = "Core module for pyroute2"; 28 homepage = "https://github.com/svinota/pyroute2"; 29 license = licenses.asl20; 30 maintainers = with maintainers; [ fab ]; 31 platforms = platforms.unix; 32 }; 33}