Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, isPy27 4, fetchFromGitHub 5, fetchpatch 6, pytest 7, unittest2 8, future 9, numpy 10, pillow 11, scipy 12, scikitlearn 13, scikitimage 14, threadpoolctl 15}: 16 17buildPythonPackage rec { 18 pname = "batchgenerators"; 19 version = "0.20.0"; 20 21 disabled = isPy27; 22 23 src = fetchFromGitHub { 24 owner = "MIC-DKFZ"; 25 repo = pname; 26 rev = "v${version}"; 27 sha256 = "0cc3i4wznqb7lk8n6jkprvkpsby6r7khkxqwn75k8f01mxgjfpvf"; 28 29 }; 30 31 patches = [ 32 (fetchpatch { 33 url = "https://github.com/MIC-DKFZ/batchgenerators/pull/59.patch"; 34 sha256 = "171b3dm40yn0wi91m9s2nq3j565s1w39jpdf1mvc03rn75i8vdp0"; 35 }) 36 ]; 37 38 propagatedBuildInputs = [ 39 future numpy pillow scipy scikitlearn scikitimage threadpoolctl 40 ]; 41 42 checkInputs = [ pytest unittest2 ]; 43 44 checkPhase = "pytest tests"; 45 46 meta = { 47 description = "2D and 3D image data augmentation for deep learning"; 48 homepage = "https://github.com/MIC-DKFZ/batchgenerators"; 49 license = lib.licenses.asl20; 50 maintainers = with lib.maintainers; [ bcdarwin ]; 51 }; 52}