2018-04-15 07:03:24 +01:00
|
|
|
{ lib
|
|
|
|
, behave
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, lxml
|
|
|
|
, pytest
|
|
|
|
, pyparsing
|
|
|
|
, mock
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-docx";
|
2019-01-17 15:13:06 +00:00
|
|
|
version = "0.8.10";
|
2018-04-15 07:03:24 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-01-17 15:13:06 +00:00
|
|
|
sha256 = "bc76ecac6b2d00ce6442a69d03a6f35c71cd72293cd8405a7472dfe317920024";
|
2018-04-15 07:03:24 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ behave mock pyparsing pytest ];
|
|
|
|
propagatedBuildInputs = [ lxml ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test tests
|
2020-09-11 07:11:09 +01:00
|
|
|
behave --format progress --stop --tags=-wip
|
2018-04-15 07:03:24 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Create and update Microsoft Word .docx files";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://python-docx.readthedocs.io/en/latest/";
|
2018-04-15 07:03:24 +01:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.alexchapman ];
|
|
|
|
};
|
|
|
|
}
|