summary refs log tree commit diff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2017-08-25 10:40:49 +0200
committerFrederik Rietdijk <fridh@fridh.nl>2017-08-25 19:36:16 +0200
commitb1c1892e2d5b2d47d1b89f22331f479c7d947096 (patch)
treedfa7251ae8204e10382d67c53194855241ede429 /pkgs/development/python-modules
parent1e4029fa0a36e9948c3df7afd276e9651cea1a85 (diff)
downloadnixlib-b1c1892e2d5b2d47d1b89f22331f479c7d947096.tar
nixlib-b1c1892e2d5b2d47d1b89f22331f479c7d947096.tar.gz
nixlib-b1c1892e2d5b2d47d1b89f22331f479c7d947096.tar.bz2
nixlib-b1c1892e2d5b2d47d1b89f22331f479c7d947096.tar.lz
nixlib-b1c1892e2d5b2d47d1b89f22331f479c7d947096.tar.xz
nixlib-b1c1892e2d5b2d47d1b89f22331f479c7d947096.tar.zst
nixlib-b1c1892e2d5b2d47d1b89f22331f479c7d947096.zip
python.pkgs.odfpy: 0.9.6 -> 1.3.5
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/odfpy/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/odfpy/default.nix b/pkgs/development/python-modules/odfpy/default.nix
new file mode 100644
index 000000000000..a80cd827c6d1
--- /dev/null
+++ b/pkgs/development/python-modules/odfpy/default.nix
@@ -0,0 +1,29 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+}:
+
+buildPythonPackage rec {
+  pname = "odfpy";
+  version = "1.3.5";
+  name = "${pname}-${version}";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "6f8163f8464868cff9421a058f25566e41d73c8f7e849c021b86630941b44366";
+  };
+
+  checkPhase = ''
+    pushd tests
+    rm runtests
+    for file in test*.py; do
+        python  $file
+    done
+  '';
+
+  meta = {
+    description = "Python API and tools to manipulate OpenDocument files";
+    homepage = "https://joinup.ec.europa.eu/software/odfpy/home";
+    license = lib.licenses.asl20;
+  };
+}