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.11"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "1105d233a0956dd8dd1e710d20b159e2d72ac3c301041b95f4d4ceb3e0ebebc4"; 18 }; 19 20 checkInputs = [ behave mock pyparsing pytest ]; 21 propagatedBuildInputs = [ lxml ]; 22 23 checkPhase = '' 24 py.test tests 25 behave --format progress --stop --tags=-wip 26 ''; 27 28 meta = { 29 description = "Create and update Microsoft Word .docx files"; 30 homepage = "https://python-docx.readthedocs.io/en/latest/"; 31 license = lib.licenses.mit; 32 maintainers = [ lib.maintainers.alexchapman ]; 33 }; 34}