Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 34 lines 672 B view raw
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 ''; 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 broken = true; 33 }; 34}