1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 pytestCheckHook, 7 pythonOlder, 8 six, 9}: 10 11buildPythonPackage rec { 12 pname = "funcparserlib"; 13 version = "1.0.1"; 14 format = "pyproject"; 15 16 disabled = pythonOlder "3.6"; 17 18 src = fetchFromGitHub { 19 owner = "vlasovskikh"; 20 repo = "funcparserlib"; 21 rev = version; 22 hash = "sha256-LE9ItCaEzEGeahpM3M3sSnDBXEr6uX5ogEkO5x2Jgzc="; 23 }; 24 25 nativeBuildInputs = [ poetry-core ]; 26 27 nativeCheckInputs = [ 28 pytestCheckHook 29 six 30 ]; 31 32 pythonImportsCheck = [ "funcparserlib" ]; 33 34 meta = with lib; { 35 description = "Recursive descent parsing library based on functional combinators"; 36 homepage = "https://github.com/vlasovskikh/funcparserlib"; 37 license = licenses.mit; 38 platforms = platforms.unix; 39 }; 40}