2018-04-15 07:03:24 +01:00
|
|
|
{ lib
|
|
|
|
, behave
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, lxml
|
|
|
|
, pytest
|
|
|
|
, pyparsing
|
|
|
|
, mock
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-docx";
|
2018-08-25 06:49:37 +01:00
|
|
|
version = "0.8.7";
|
2018-04-15 07:03:24 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-08-25 06:49:37 +01:00
|
|
|
sha256 = "ba9f2a7ca391b78ab385d796b38af3f21bab23c727fc8e0c5e630448d1a11fe3";
|
2018-04-15 07:03:24 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|