mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
40 lines
1 KiB
Nix
40 lines
1 KiB
Nix
{ 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;
|
|
}
|