at master 880 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools, 6 python, 7}: 8 9buildPythonPackage rec { 10 pname = "lit"; 11 version = "18.1.8"; 12 pyproject = true; 13 14 src = fetchPypi { 15 inherit pname version; 16 hash = "sha256-R8F0oYaUGugw8E3tdqNERgC+Z9Xl+4KCw3g/umccTts="; 17 }; 18 19 nativeBuildInputs = [ setuptools ]; 20 21 passthru = { 22 inherit python; 23 }; 24 25 # Non-standard test suite. Needs custom checkPhase. 26 # Needs LLVM's `FileCheck` and `not`: `$out/bin/lit tests` 27 # There should be `llvmPackages.lit` since older LLVM versions may 28 # have the possibility of not correctly interfacing with newer lit versions 29 doCheck = false; 30 31 meta = { 32 description = "Portable tool for executing LLVM and Clang style test suites"; 33 mainProgram = "lit"; 34 homepage = "http://llvm.org/docs/CommandGuide/lit.html"; 35 license = lib.licenses.ncsa; 36 maintainers = [ ]; 37 }; 38}