diff options
author | Alex Chapman <alex@farfromthere.net> | 2018-04-15 16:03:24 +1000 |
---|---|---|
committer | Robert Schütz <rschuetz17@gmail.com> | 2018-04-15 08:03:24 +0200 |
commit | 35f75cff4f80373f0ecfe720e5aa3f1e476b6842 (patch) | |
tree | 31bee044381e6ff47539a016a665e159c873628c | |
parent | 064d4bfee17a9e6180031daf37c8e40b5ef9a161 (diff) | |
download | nixlib-35f75cff4f80373f0ecfe720e5aa3f1e476b6842.tar nixlib-35f75cff4f80373f0ecfe720e5aa3f1e476b6842.tar.gz nixlib-35f75cff4f80373f0ecfe720e5aa3f1e476b6842.tar.bz2 nixlib-35f75cff4f80373f0ecfe720e5aa3f1e476b6842.tar.lz nixlib-35f75cff4f80373f0ecfe720e5aa3f1e476b6842.tar.xz nixlib-35f75cff4f80373f0ecfe720e5aa3f1e476b6842.tar.zst nixlib-35f75cff4f80373f0ecfe720e5aa3f1e476b6842.zip |
pythonPackages.python-docx: init at 0.8.6 (#38722)
-rw-r--r-- | maintainers/maintainer-list.nix | 5 | ||||
-rw-r--r-- | pkgs/development/python-modules/python-docx/default.nix | 33 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
3 files changed, 40 insertions, 0 deletions
diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 5f47c859a8ec..da3a77f4206e 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -305,6 +305,11 @@ github = "akru"; name = "Alexander Krupenkin "; }; + alexchapman = { + name = "Alex Chapman"; + email = "alex@farfromthere.net"; + github = "AJChapman"; + }; alexvorobiev = { email = "alexander.vorobiev@gmail.com"; github = "alexvorobiev"; diff --git a/pkgs/development/python-modules/python-docx/default.nix b/pkgs/development/python-modules/python-docx/default.nix new file mode 100644 index 000000000000..11ade481df5e --- /dev/null +++ b/pkgs/development/python-modules/python-docx/default.nix @@ -0,0 +1,33 @@ +{ lib +, behave +, buildPythonPackage +, fetchPypi +, lxml +, pytest +, pyparsing +, mock +}: + +buildPythonPackage rec { + pname = "python-docx"; + version = "0.8.6"; + + src = fetchPypi { + inherit pname version; + sha256 = "117i84s6fcdsrfckbvznnqgqwhnf1x0523ps16cki8sg9byydv2m"; + }; + + checkInputs = [ behave mock pyparsing pytest ]; + propagatedBuildInputs = [ lxml ]; + + checkPhase = '' + py.test tests + ''; + + 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d5e3a11236c4..e572eaefb2eb 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -18298,6 +18298,8 @@ EOF wsproto = callPackage ../development/python-modules/wsproto { }; h11 = callPackage ../development/python-modules/h11 { }; + + python-docx = callPackage ../development/python-modules/python-docx { }; }); in fix' (extends overrides packages) |