depot/third_party/nixpkgs/pkgs/development/python-modules/batchgenerators/default.nix
Default email 4a3aa3d7d8 Project import generated by Copybara.
GitOrigin-RevId: 24c9b05ac53e422f1af81a156f1fd58499eb27fb
2020-10-11 14:50:04 +02:00

51 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, isPy27
, fetchFromGitHub
, fetchpatch
, pytestCheckHook
, unittest2
, future
, numpy
, pillow
, scipy
, scikitlearn
, scikitimage
, threadpoolctl
}:
buildPythonPackage rec {
pname = "batchgenerators";
version = "0.20.1";
disabled = isPy27;
src = fetchFromGitHub {
owner = "MIC-DKFZ";
repo = pname;
rev = "v${version}";
sha256 = "1f91yflv9rschyl5bnfn735hp1rxrzcxkx18aajmlzb067h0ip8m";
};
patches = [
# lift Pillow bound; should be merged in next release
(fetchpatch {
url = "https://github.com/MIC-DKFZ/batchgenerators/pull/59.patch";
sha256 = "171b3dm40yn0wi91m9s2nq3j565s1w39jpdf1mvc03rn75i8vdp0";
})
];
propagatedBuildInputs = [
future numpy pillow scipy scikitlearn scikitimage threadpoolctl
];
checkInputs = [ pytestCheckHook unittest2 ];
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 ];
};
}