Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions pkgs/development/python-modules/boxx/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,12 @@
lib,
buildPythonPackage,
fetchPypi,
python,
xvfb-run,
matplotlib,
scikit-image,
numpy,
pandas,
imageio,
snakeviz,
fn,
pyopengl,
seaborn,
torch,
Expand All @@ -37,21 +34,29 @@ buildPythonPackage rec {
pandas
imageio
snakeviz
fn
pyopengl
seaborn
];

nativeCheckInputs = [
xvfb-run
torch
torchvision
];

pythonImportsCheck = [ "boxx" ];

# The tests are just a bunch of files with code in them (yikes)
# intead of normal classes/functions representing test cases.
# Standard test discovery mechanisms in unittest/pytest complain
# that no tests were discovered, so we run the files manually.
checkPhase = ''
xvfb-run ${python.interpreter} -m unittest
export MPLCONFIGDIR=$(mktemp -d)
TESTS=$(find test -type f -name '*.py' | sed 's|test/\([^.]*\).py|\1|g')
touch test/__init__.py
for test in $TESTS; do
echo "Running test "$test"..."
python -m test.$test
done
'';

meta = with lib; {
Expand Down
5 changes: 4 additions & 1 deletion pkgs/development/python-modules/bpycv/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ buildPythonPackage rec {
};
}
''
${blender.withPackages (ps: [ ps.bpycv ])}/bin/blender-wrapped -b -P ${./bpycv-test.py}
${blender.withPackages (ps: [ ps.bpycv ])}/bin/blender-wrapped \
--background \
--python ${./bpycv-test.py} \
--python-exit-code 42
'';
};

Expand Down
39 changes: 0 additions & 39 deletions pkgs/development/python-modules/fn/default.nix

This file was deleted.

1 change: 1 addition & 0 deletions pkgs/top-level/python-aliases.nix
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ mapAliases ({
flufl_bounce = flufl-bounce; # added 2023-11-03
flufl_i18n = flufl-i18n; # added 2023-11-03
flufl_lock = flufl-lock; # added 2023-11-03
fn = throw "fn was removed, as it is no longer used by any package in nixpkgs, it is not compatible with python 3.11 or newer and it was last updated in 2014."; # added 2025-02-08
forbiddenfruit = throw "forbiddenfruit has been removed, because it was unmaintained and relied on the nose test framework"; # added 2024-07-08
FormEncode = formencode; # added 2023-02-19
foundationdb51 = throw "foundationdb51 is no longer maintained, use foundationdb71 instead"; # added 2023-06-06
Expand Down
2 changes: 0 additions & 2 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4867,8 +4867,6 @@ self: super: with self; {

flynt = callPackage ../development/python-modules/flynt { };

fn = callPackage ../development/python-modules/fn { };

fnv-hash-fast = callPackage ../development/python-modules/fnv-hash-fast { };

fnvhash = callPackage ../development/python-modules/fnvhash { };
Expand Down