depot/third_party/nixpkgs/pkgs/development/python-modules/funcparserlib/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

31 lines
669 B
Nix

{ stdenv
, 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);
meta = with stdenv.lib; {
description = "Recursive descent parsing library based on functional combinators";
homepage = "https://github.com/vlasovskikh/funcparserlib";
license = licenses.mit;
platforms = platforms.unix;
};
}