summary refs log tree commit diff
path: root/pkgs/development/python-modules/funcparserlib/default.nix
blob: 3a9503419ecdda6acb41b25e8051a4453afd95af (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ 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;
  };

}