mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +00:00
4993bad67c
apply patch from https://github.com/MIC-DKFZ/batchgenerators/pull/59 to allow batchgenerators to build with pillow 7.1.2+
53 lines
1.0 KiB
Nix
53 lines
1.0 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, isPy27
|
|
, fetchFromGitHub
|
|
, fetchpatch
|
|
, pytest
|
|
, unittest2
|
|
, future
|
|
, numpy
|
|
, pillow
|
|
, scipy
|
|
, scikitlearn
|
|
, scikitimage
|
|
, threadpoolctl
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "batchgenerators";
|
|
version = "0.20.0";
|
|
|
|
disabled = isPy27;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "MIC-DKFZ";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0cc3i4wznqb7lk8n6jkprvkpsby6r7khkxqwn75k8f01mxgjfpvf";
|
|
|
|
};
|
|
|
|
patches = [
|
|
(fetchpatch {
|
|
url = "https://github.com/MIC-DKFZ/batchgenerators/pull/59.patch";
|
|
sha256 = "171b3dm40yn0wi91m9s2nq3j565s1w39jpdf1mvc03rn75i8vdp0";
|
|
})
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
future numpy pillow scipy scikitlearn scikitimage threadpoolctl
|
|
];
|
|
|
|
checkInputs = [ pytest unittest2 ];
|
|
|
|
checkPhase = "pytest tests";
|
|
|
|
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 ];
|
|
};
|
|
}
|