1{ lib 2, behave 3, buildPythonPackage 4, fetchPypi 5, lxml 6, pytest 7, pyparsing 8, mock 9}: 10 11buildPythonPackage rec { 12 pname = "python-docx"; 13 version = "0.8.7"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "ba9f2a7ca391b78ab385d796b38af3f21bab23c727fc8e0c5e630448d1a11fe3"; 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}