about summary refs log tree commit diff
path: root/pkgs/development/python-modules/piexif
diff options
context:
space:
mode:
authorJaakko Luttinen <jaakko.luttinen@iki.fi>2017-05-06 21:20:25 +0300
committerJaakko Luttinen <jaakko.luttinen@iki.fi>2017-05-09 20:22:36 +0300
commit976d811ad4ba0e1f3fb75be8c1c0779f8c9117f9 (patch)
tree5c1fdd43064bf2646732e1cf9ae03f2bccce09c1 /pkgs/development/python-modules/piexif
parent0d6d47edd10ad32d1feb5ee1c7e2d78d68098e99 (diff)
pythonPackages.piexif: init at 1.0.12
Diffstat (limited to 'pkgs/development/python-modules/piexif')
-rw-r--r--pkgs/development/python-modules/piexif/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/piexif/default.nix b/pkgs/development/python-modules/piexif/default.nix
new file mode 100644
index 0000000000000..e21593993cd2c
--- /dev/null
+++ b/pkgs/development/python-modules/piexif/default.nix
@@ -0,0 +1,24 @@
+{lib, buildPythonPackage, fetchurl, pillow}:
+
+buildPythonPackage rec {
+  name = "${pname}-${version}";
+  pname = "piexif";
+  version = "1.0.12";
+
+  # pillow needed for unit tests
+  buildInputs = [ pillow ];
+
+  # No .tar.gz source available at PyPI, only .zip source, so need to use
+  # fetchurl because fetchPypi doesn't support .zip.
+  src = fetchurl {
+    url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.zip";
+    sha256 = "15dvdr7b5xxsbsq5k6kq8h0xnzrkqzc08dzlih48a21x27i02bii";
+  };
+
+  meta = {
+    description = "Simplify Exif manipulations with Python";
+    homepage = https://github.com/hMatoba/Piexif;
+    license = lib.licenses.mit;
+    maintainers = with lib.maintainers; [ jluttine ];
+  };
+}