1{ lib, buildPythonPackage, fetchPypi, python }: 2 3buildPythonPackage rec { 4 pname = "pycparser"; 5 version = "2.20"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "2d475327684562c3a96cc71adf7dc8c4f0565175cf86b6d7a404ff4c771f15f0"; 10 }; 11 12 checkPhase = '' 13 ${python.interpreter} -m unittest discover -s tests 14 ''; 15 16 meta = with 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}