summary refs log tree commit diff
path: root/pkgs/development/python-modules/pycparser/default.nix
blob: 4845c625652f274b55deea2d4b91d10c1b345aee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ stdenv, buildPythonPackage, fetchPypi, python }:

buildPythonPackage rec {
  pname = "pycparser";
  version = "2.19";

  src = fetchPypi {
    inherit pname version;
    sha256 = "a988718abfad80b6b157acce7bf130a30876d27603738ac39f140993246b25b3";
  };

  checkPhase = ''
    ${python.interpreter} -m unittest discover -s tests
  '';

  meta = with stdenv.lib; {
    description = "C parser in Python";
    homepage = https://github.com/eliben/pycparser;
    license = licenses.bsd3;
    maintainers = with maintainers; [ domenkozar ];
  };
}