2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, behave
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, lxml
|
|
|
|
, pytest
|
|
|
|
, pyparsing
|
|
|
|
, mock
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-docx";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "0.8.11";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "1105d233a0956dd8dd1e710d20b159e2d72ac3c301041b95f4d4ceb3e0ebebc4";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ behave mock pyparsing pytest ];
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ lxml ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test tests
|
2020-09-25 04:45:31 +00:00
|
|
|
behave --format progress --stop --tags=-wip
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|