2018-03-31 19:16:10 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, python }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pycparser";
|
2018-11-04 10:35:11 +00:00
|
|
|
version = "2.19";
|
2018-03-31 19:16:10 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-04 10:35:11 +00:00
|
|
|
sha256 = "a988718abfad80b6b157acce7bf130a30876d27603738ac39f140993246b25b3";
|
2018-03-31 19:16:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|