2023-05-24 13:37:59 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2024-01-13 08:15:51 +00:00
|
|
|
, setuptools
|
2023-05-24 13:37:59 +00:00
|
|
|
, python
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
buildPythonPackage rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "lit";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "17.0.6";
|
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
src = fetchPypi {
|
2020-04-24 23:36:52 +00:00
|
|
|
inherit pname version;
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-36mvm1X8RQmla+e/I0bwedf0okLVg7ny4LB4/Qq64xs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
passthru = {
|
2023-05-24 13:37:59 +00:00
|
|
|
inherit python;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Non-standard test suite. Needs custom checkPhase.
|
2023-01-20 10:41:00 +00:00
|
|
|
# Needs LLVM's `FileCheck` and `not`: `$out/bin/lit tests`
|
|
|
|
# There should be `llvmPackages.lit` since older LLVM versions may
|
|
|
|
# have the possibility of not correctly interfacing with newer lit versions
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Portable tool for executing LLVM and Clang style test suites";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "lit";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://llvm.org/docs/CommandGuide/lit.html";
|
|
|
|
license = lib.licenses.ncsa;
|
|
|
|
maintainers = with lib.maintainers; [ dtzWill ];
|
|
|
|
};
|
|
|
|
}
|