Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 unittestCheckHook, 6 pythonOlder, 7}: 8 9buildPythonPackage rec { 10 pname = "pycparser"; 11 version = "2.22"; 12 format = "setuptools"; 13 14 src = fetchPypi { 15 inherit pname version; 16 hash = "sha256-SRyL6cBA9TkPW/RKWwd1K9B/Vu35kjgbBccBQ57sEPY="; 17 }; 18 19 nativeCheckInputs = [ unittestCheckHook ]; 20 disabled = pythonOlder "3.8"; 21 22 unittestFlagsArray = [ 23 "-s" 24 "tests" 25 ]; 26 27 meta = with lib; { 28 description = "C parser in Python"; 29 homepage = "https://github.com/eliben/pycparser"; 30 license = licenses.bsd3; 31 maintainers = with maintainers; [ domenkozar ]; 32 }; 33}