depot/third_party/nixpkgs/pkgs/development/python-modules/funcparserlib/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

31 lines
659 B
Nix

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