Review/revert later

This commit is contained in:
muon 2024-07-10 21:12:56 +00:00
parent f4354da57d
commit 6bb34e1c51
13 changed files with 293 additions and 38 deletions

View file

@ -0,0 +1,40 @@
{ lib, python3Packages, pkgs, config }:
with pkgs;
python3Packages.buildPythonApplication {
pname = "smoop";
version = "1.0";
propagatedBuildInputs = [
python3
python3Packages.pip
python3Packages.virtualenv
python3Packages.tkinter
python3Packages.xlib
python3Packages.pillow
python3Packages.python-dotenv
python3Packages.pyautogui
python3Packages.aiohttp
python3Packages.discordpy
python3Packages.opencv4
stdenv.cc.cc.lib
glib
libglvnd
];
nativeCheckInputs = [
xvfb-run
scrot
];
checkPhase = ''
xvfb-run python -c 'import smoop'
# The tests depend on some specific things that xvfb cant provide, like keyboard and mouse
# xvfb-run python -m unittest tests.test_pyautogui
'';
installCheckPhase = ''
xvfb-run python -c 'import smoop'
# The tests depend on some specific things that xvfb cant provide, like keyboard and mouse
# xvfb-run python -m unittest tests.test_pyautogui
'';
src = /home/muon/projects/smoop;
}