1{ lib, buildPythonPackage, fetchPypi, unittestCheckHook }: 2 3buildPythonPackage rec { 4 pname = "pycparser"; 5 version = "2.21"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "e644fdec12f7872f86c58ff790da456218b10f863970249516d60a5eaca77206"; 10 }; 11 12 checkInputs = [ unittestCheckHook ]; 13 14 unittestFlagsArray = [ "-s" "tests" ]; 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}