15 buildPythonPackage rec {
16 pname = "batchgenerators";
18 format = "setuptools";
20 disabled = pythonOlder "3.7";
22 src = fetchFromGitHub {
26 hash = "sha256-L2mWH2t8PN9o1M67KDdl1Tj2ZZ02MY4icsJY2VNrj3A=";
29 propagatedBuildInputs = [
39 # see https://github.com/MIC-DKFZ/batchgenerators/pull/78
41 substituteInPlace setup.py \
42 --replace '"unittest2",' ""
49 # see https://github.com/MIC-DKFZ/batchgenerators/pull/78
50 disabledTestPaths = [ "tests/test_axis_mirroring.py" ];
52 pythonImportsCheck = [
54 "batchgenerators.augmentations"
55 "batchgenerators.dataloading"
56 "batchgenerators.datasets"
57 "batchgenerators.transforms"
58 "batchgenerators.utilities"
62 description = "2D and 3D image data augmentation for deep learning";
63 homepage = "https://github.com/MIC-DKFZ/batchgenerators";
64 license = licenses.asl20;
65 maintainers = with maintainers; [ bcdarwin ];