1{ stdenv, buildPythonPackage, fetchPypi, python }: 2 3buildPythonPackage rec { 4 pname = "pycparser"; 5 version = "2.18"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "99a8ca03e29851d96616ad0404b4aad7d9ee16f25c9f9708a11faf2810f7b226"; 10 }; 11 12 checkPhase = '' 13 ${python.interpreter} -m unittest discover -s tests 14 ''; 15 16 meta = with stdenv.lib; { 17 description = "C parser in Python"; 18 homepage = https://github.com/eliben/pycparser; 19 license = licenses.bsd3; 20 maintainers = with maintainers; [ domenkozar ]; 21 }; 22}