2020-03-04 22:01:18 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, isPy27
|
2020-04-28 15:35:46 +00:00
|
|
|
, fetchFromGitHub
|
2020-09-12 15:46:17 +00:00
|
|
|
, pytestCheckHook
|
2020-03-04 22:01:18 +00:00
|
|
|
, unittest2
|
|
|
|
, future
|
|
|
|
, numpy
|
2020-04-28 15:35:46 +00:00
|
|
|
, pillow
|
2020-03-04 22:01:18 +00:00
|
|
|
, scipy
|
2021-05-14 18:46:36 +00:00
|
|
|
, scikit-learn
|
2020-03-04 22:01:18 +00:00
|
|
|
, 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 15:35:46 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MIC-DKFZ";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-02-22 18:44:04 +00:00
|
|
|
sha256 = "16bk4r0q3m2c9fawpmj4l7kz0x3fyv1spb92grf44gmyricq3jdb";
|
2020-08-25 02:07:09 +00:00
|
|
|
|
2020-03-04 22:01:18 +00:00
|
|
|
};
|
|
|
|
|
2020-04-28 15:35:46 +00:00
|
|
|
propagatedBuildInputs = [
|
2021-05-14 18:46:36 +00:00
|
|
|
future numpy pillow scipy scikit-learn scikitimage threadpoolctl
|
2020-04-28 15:35:46 +00:00
|
|
|
];
|
|
|
|
|
2020-09-12 15:46:17 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|