summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/batchgenerators
diff options
context:
space:
mode:
authorBen Darwin <bcdarwin@gmail.com>2020-03-04 17:01:18 -0500
committerFrederik Rietdijk <freddyrietdijk@fridh.nl>2020-03-14 22:56:38 +0100
commit61b61ed08765eb6ef8e64281ff38d13345a55687 (patch)
tree9b1fe53bee5e6487fbd501fcf1aeb0dee8b3d57f /pkgs/development/python-modules/batchgenerators
parentpython3Packages.threadpoolctl: init at 2.0.0 (diff)
downloadnixpkgs-61b61ed08765eb6ef8e64281ff38d13345a55687.tar.gz
python3Packages.batchgenerators: init at 0.19.7
Diffstat (limited to 'pkgs/development/python-modules/batchgenerators')
-rw-r--r--pkgs/development/python-modules/batchgenerators/default.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/batchgenerators/default.nix b/pkgs/development/python-modules/batchgenerators/default.nix
new file mode 100644
index 000000000000..001c3cc19a5e
--- /dev/null
+++ b/pkgs/development/python-modules/batchgenerators/default.nix
@@ -0,0 +1,38 @@
+{ lib
+, buildPythonPackage
+, isPy27
+, fetchPypi
+, pytest
+, unittest2
+, future
+, numpy
+, scipy
+, scikitlearn
+, scikitimage
+, threadpoolctl
+}:
+
+
+buildPythonPackage rec {
+ pname = "batchgenerators";
+ version = "0.19.7";
+
+ disabled = isPy27;
+
+ src = fetchPypi {
+ inherit pname version;
+ sha256 = "0qqzwqf5r0q6jh8avz4f9kf8x96crvdnkznhf24pbm0faf8yk67q";
+ };
+
+ propagatedBuildInputs = [ future numpy 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 ];
+ };
+}