depot/third_party/nixpkgs/pkgs/development/python-modules/lit/default.nix

34 lines
831 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, python
}:
buildPythonPackage rec {
pname = "lit";
version = "17.0.1";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-RIZ65Xa1eQVnsSC8Pw2fAh2slCTRsIQMdazYX0YQrAQ=";
};
passthru = {
inherit python;
};
# Non-standard test suite. Needs custom checkPhase.
# 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
doCheck = false;
meta = {
description = "Portable tool for executing LLVM and Clang style test suites";
homepage = "http://llvm.org/docs/CommandGuide/lit.html";
license = lib.licenses.ncsa;
maintainers = with lib.maintainers; [ dtzWill ];
};
}