15 buildPythonPackage rec {
19 src = fetchFromGitHub {
23 sha256 = "00vcmhnp14s54g386izgaxzrdr2nqv3pz9nvpyiwrn33zawr308z";
26 checkInputs = [ pytestCheckHook matplotlib mock pytest_xdist ];
27 propagatedBuildInputs = [ pytorch scikitlearn tqdm pynvml ];
29 # runs succesfully in 3.9, however, async isn't correctly closed so it will fail after test suite.
30 doCheck = pythonOlder "3.9";
32 # Some packages are not in NixPkgs; other tests try to build distributed
33 # models, which doesn't work in the sandbox.
34 # avoid tests which need special packages
36 "--ignore=tests/ignite/contrib/handlers/test_trains_logger.py"
37 "--ignore=tests/ignite/metrics/test_dill.py"
38 "--ignore=tests/ignite/metrics/test_ssim.py"
42 # disable tests which need specific packages
50 "test_output_handler" # needs mlflow
52 "test_pbar" # slight output differences
58 description = "High-level training library for PyTorch";
59 homepage = "https://pytorch.org/ignite";
60 license = licenses.bsd3;
61 maintainers = [ maintainers.bcdarwin ];