Files
CS412-Applied-Algorithms/devenv.nix

52 lines
866 B
Nix

{
pkgs,
...
}:
{
# https://devenv.sh/packages/
packages = with pkgs; [
git
libz
];
# https://devenv.sh/languages/
languages.python = {
enable = true;
venv = {
enable = true;
requirements = ''
contourpy==1.3.3
cycler==0.12.1
fonttools==4.59.2
kiwisolver==1.4.9
matplotlib==3.10.6
numpy==2.3.2
packaging==25.0
pillow==11.3.0
pyparsing==3.2.3
python-dateutil==2.9.0.post0
six==1.17.0
'';
};
};
enterShell = ''
echo "Welcome to CS412-Applied-Algorithms"
'';
# https://devenv.sh/tests/
enterTest = ''
echo "Running tests"
cd ./Foxsays
echo "Testing Foxsays"
python -m unittest foxsays_unittest.py
cd ..
echo "Done"
'';
# See full reference at https://devenv.sh/reference/options/
}