1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools,
6 python,
7}:
8
9buildPythonPackage rec {
10 pname = "lit";
11 version = "17.0.6";
12 pyproject = true;
13
14 src = fetchPypi {
15 inherit pname version;
16 hash = "sha256-36mvm1X8RQmla+e/I0bwedf0okLVg7ny4LB4/Qq64xs=";
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 = with lib.maintainers; [ dtzWill ];
37 };
38}