pythonPackages.python-docx: init at 0.8.6 (#38722)
commit35f75cff4f80373f0ecfe720e5aa3f1e476b6842
authorAlex Chapman <alex@farfromthere.net>
dateSun 15 Apr 2018, 16:03 (9 years ago)
parent064d4bf
maintainers/maintainer-list.nix+5
@@ -305,6 +305,11 @@
305305 github = "akru";
306306 name = "Alexander Krupenkin ";
307307 };
308+ alexchapman = {
309+ name = "Alex Chapman";
310+ email = "alex@farfromthere.net";
311+ github = "AJChapman";
312+ };
308313 alexvorobiev = {
309314 email = "alexander.vorobiev@gmail.com";
310315 github = "alexvorobiev";
pkgs/development/python-modules/python-docx/default.nixnew file+33
@@ -0,0 +1,33 @@
1+{ lib
2+, behave
3+, buildPythonPackage
4+, fetchPypi
5+, lxml
6+, pytest
7+, pyparsing
8+, mock
9+}:
10+
11+buildPythonPackage rec {
12+ pname = "python-docx";
13+ version = "0.8.6";
14+
15+ src = fetchPypi {
16+ inherit pname version;
17+ sha256 = "117i84s6fcdsrfckbvznnqgqwhnf1x0523ps16cki8sg9byydv2m";
18+ };
19+
20+ checkInputs = [ behave mock pyparsing pytest ];
21+ propagatedBuildInputs = [ lxml ];
22+
23+ checkPhase = ''
24+ py.test tests
25+ '';
26+
27+ meta = {
28+ description = "Create and update Microsoft Word .docx files";
29+ homepage = https://python-docx.readthedocs.io/en/latest/;
30+ license = lib.licenses.mit;
31+ maintainers = [ lib.maintainers.alexchapman ];
32+ };
33+}
pkgs/top-level/python-packages.nix+2
@@ -18298,6 +18298,8 @@ EOF
1829818298 wsproto = callPackage ../development/python-modules/wsproto { };
1829918299
1830018300 h11 = callPackage ../development/python-modules/h11 { };
18301+
18302+ python-docx = callPackage ../development/python-modules/python-docx { };
1830118303});
1830218304
1830318305in fix' (extends overrides packages)