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

22 lines
546 B
Nix

{ 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 ];
};
}