2020-03-04 22:01:18 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, isPy27
|
2020-04-28 16:35:46 +01:00
|
|
|
, fetchFromGitHub
|
2020-09-12 16:46:17 +01:00
|
|
|
, pytestCheckHook
|
2020-03-04 22:01:18 +00:00
|
|
|
, unittest2
|
|
|
|
, future
|
|
|
|
, numpy
|
2020-04-28 16:35:46 +01:00
|
|
|
, pillow
|
2020-03-04 22:01:18 +00:00
|
|
|
, scipy
|
|
|
|
, scikitlearn
|
|
|
|
, scikitimage
|
|
|
|
, threadpoolctl
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "batchgenerators";
|
2021-02-22 18:44:04 +00:00
|
|
|
version = "0.21";
|
2020-03-04 22:01:18 +00:00
|
|
|
|
|
|
|
disabled = isPy27;
|
|
|
|
|
2020-04-28 16:35:46 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MIC-DKFZ";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-02-22 18:44:04 +00:00
|
|
|
sha256 = "16bk4r0q3m2c9fawpmj4l7kz0x3fyv1spb92grf44gmyricq3jdb";
|
2020-08-25 03:07:09 +01:00
|
|
|
|
2020-03-04 22:01:18 +00:00
|
|
|
};
|
|
|
|
|
2020-04-28 16:35:46 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
future numpy pillow scipy scikitlearn scikitimage threadpoolctl
|
|
|
|
];
|
|
|
|
|
2020-09-12 16:46:17 +01:00
|
|
|
checkInputs = [ pytestCheckHook unittest2 ];
|
2020-03-04 22:01:18 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "2D and 3D image data augmentation for deep learning";
|
|
|
|
homepage = "https://github.com/MIC-DKFZ/batchgenerators";
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = with lib.maintainers; [ bcdarwin ];
|
|
|
|
};
|
|
|
|
}
|