Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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.10"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "bc76ecac6b2d00ce6442a69d03a6f35c71cd72293cd8405a7472dfe317920024"; 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}