Last active
December 20, 2021 12:44
-
-
Save Mic92/f15ed4ae6a2deae237404f283f1ac3f7 to your computer and use it in GitHub Desktop.
package for llvm lnt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ python3, fetchFromGitHub, lib, lit }: | |
let | |
packageOverrides = self: super: { | |
sqlalchemy = super.sqlalchemy.overridePythonAttrs (oldAttrs: rec { | |
version = "1.2.19"; | |
src = super.fetchPypi { | |
pname = "SQLAlchemy"; | |
inherit version; | |
sha256 = "sha256-W7LE/CvMNEetRXFsZlgeq5gsAH3PklSCSY2HM/hvF8c="; | |
}; | |
doCheck = false; | |
}); | |
}; | |
py = python3.override { | |
# Put packageOverrides at the start so they are applied after defaultOverrides | |
inherit packageOverrides; | |
}; | |
in py.pkgs.buildPythonApplication { | |
pname = "lnt"; | |
version = "2021-12-14"; | |
src = fetchFromGitHub { | |
owner = "llvm"; | |
repo = "llvm-lnt"; | |
rev = "016a4a7b6b50b4935b23068f82da1f1e3edd951f"; | |
sha256 = "sha256-henDx6dGJ8TziGc+DFi7wrQJ7s1DBXpHZ0eIPSQ8c5o="; | |
}; | |
propagatedBuildInputs = with py.pkgs; [ | |
psycopg2 | |
sqlalchemy | |
gunicorn | |
progressbar2 | |
wtforms | |
flask | |
flask_wtf | |
flask-restful | |
six | |
jinja2 | |
pytz | |
itsdangerous | |
click | |
pyyaml | |
requests | |
future | |
python-gnupg | |
lit | |
certifi | |
werkzeug | |
]; | |
doCheck = false; | |
postPatch = '' | |
sed -i -e 's!"\(.*\)==.*"!"\1"!' setup.py | |
sed -i -e '/typing/d' setup.py | |
''; | |
meta = with lib; { | |
description = "LLVM Nightly Test Infrastructure"; | |
homepage = "https://llvm.org/docs/lnt/"; | |
license = licenses.apsl20; | |
maintainers = with maintainers; [ mic92 ]; | |
platforms = platforms.unix; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment