From 83cc1e3d38100fac3f2937bfcd9bb12616671df2 Mon Sep 17 00:00:00 2001 From: Roger Qiu Date: Fri, 3 Aug 2018 22:39:55 +1000 Subject: [PATCH] pythonPackages.imgaug: init at 0.2.6 (#43720) --- .../python-modules/imgaug/default.nix | 29 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/development/python-modules/imgaug/default.nix diff --git a/pkgs/development/python-modules/imgaug/default.nix b/pkgs/development/python-modules/imgaug/default.nix new file mode 100644 index 000000000000..08f1d49d8c6c --- /dev/null +++ b/pkgs/development/python-modules/imgaug/default.nix @@ -0,0 +1,29 @@ +{ stdenv, buildPythonPackage, fetchPypi, numpy, scipy, scikitimage, opencv3, six }: + +buildPythonPackage rec { + pname = "imgaug"; + version = "0.2.6"; + + src = fetchPypi { + inherit pname version; + sha256 = "1wy8ydkqq0jrwxwdv04q89n3gwsr9pjaspsbw26ipg5a5lnhb9c2"; + }; + + propagatedBuildInputs = [ + numpy + scipy + scikitimage + opencv3 + six + ]; + + # disable tests when there are no tests in the PyPI archive + doCheck = false; + + meta = with stdenv.lib; { + homepage = https://github.com/aleju/imgaug; + description = "Image augmentation for machine learning experiments"; + license = licenses.mit; + maintainers = with maintainers; [ cmcdragonkai ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 2844bf6aba79..159d791e84fd 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6515,6 +6515,8 @@ in { }; }; + imgaug = callPackage ../development/python-modules/imgaug { }; + inflection = callPackage ../development/python-modules/inflection { }; influxdb = buildPythonPackage rec {