about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/python-docx/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/python-docx/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/python-docx/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/python-docx/default.nix b/nixpkgs/pkgs/development/python-modules/python-docx/default.nix
new file mode 100644
index 000000000000..025a13958cd0
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/python-docx/default.nix
@@ -0,0 +1,34 @@
+{ lib
+, behave
+, buildPythonPackage
+, fetchPypi
+, lxml
+, pytest
+, pyparsing
+, mock
+}:
+
+buildPythonPackage rec {
+  pname = "python-docx";
+  version = "0.8.10";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "bc76ecac6b2d00ce6442a69d03a6f35c71cd72293cd8405a7472dfe317920024";
+  };
+
+  checkInputs = [ behave mock pyparsing pytest ];
+  propagatedBuildInputs = [ lxml ];
+
+  checkPhase = ''
+    py.test tests
+    behave --format progress --stop --tags=-wip
+  '';
+
+  meta = {
+    description = "Create and update Microsoft Word .docx files";
+    homepage = "https://python-docx.readthedocs.io/en/latest/";
+    license = lib.licenses.mit;
+    maintainers = [ lib.maintainers.alexchapman ];
+  };
+}