1{ lib 2, buildPythonPackage 3, fetchPypi 4, python 5, isPy3k 6}: 7 8buildPythonPackage rec { 9 pname = "funcparserlib"; 10 version = "0.3.6"; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "b7992eac1a3eb97b3d91faa342bfda0729e990bd8a43774c1592c091e563c91d"; 15 }; 16 17 checkPhase = '' 18 ${python.interpreter} -m unittest discover 19 ''; 20 21 # Tests are Python 2.x only judging from SyntaxError 22 doCheck = !(isPy3k); 23 24 meta = with lib; { 25 description = "Recursive descent parsing library based on functional combinators"; 26 homepage = "https://github.com/vlasovskikh/funcparserlib"; 27 license = licenses.mit; 28 platforms = platforms.unix; 29 }; 30 31}