mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Review/revert later
This commit is contained in:
parent
f4354da57d
commit
6bb34e1c51
13 changed files with 293 additions and 38 deletions
40
modules/nixos/server/containers/smoop.nix
Normal file
40
modules/nixos/server/containers/smoop.nix
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue