2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-15 19:58:13 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, python
|
|
|
|
, isPy3k
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "funcparserlib";
|
|
|
|
version = "0.3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "b7992eac1a3eb97b3d91faa342bfda0729e990bd8a43774c1592c091e563c91d";
|
|
|
|
};
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m unittest discover
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Tests are Python 2.x only judging from SyntaxError
|
|
|
|
doCheck = !(isPy3k);
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-15 19:58:13 +00:00
|
|
|
description = "Recursive descent parsing library based on functional combinators";
|
2019-12-08 16:50:31 +00:00
|
|
|
homepage = "https://github.com/vlasovskikh/funcparserlib";
|
2018-10-15 19:58:13 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|