Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / python-docx / default.nix
blob6a5c01d216da7461cc4eaadb750500e8f608397f
1 { lib
2 , behave
3 , buildPythonPackage
4 , fetchPypi
5 , lxml
6 , mock
7 , pyparsing
8 , pytestCheckHook
9 , pythonOlder
10 , setuptools
11 , typing-extensions
14 buildPythonPackage rec {
15   pname = "python-docx";
16   version = "1.1.0";
17   pyproject = true;
19   disabled = pythonOlder "3.7";
21   src = fetchPypi {
22     inherit pname version;
23     hash = "sha256-WCm3IhQc8at5rt8MNNn+mSSyl2RYTA8hZOsrAtzfF8k=";
24   };
26   nativeBuildInputs = [
27     setuptools
28   ];
30   propagatedBuildInputs = [
31     lxml
32     typing-extensions
33   ];
35   nativeCheckInputs = [
36     behave
37     mock
38     pyparsing
39     pytestCheckHook
40   ];
42   postCheck = ''
43     behave --format progress --stop --tags=-wip
44   '';
46   pythonImportsCheck = [
47     "docx"
48   ];
50   disabledTests = [
51     # https://github.com/python-openxml/python-docx/issues/1302
52     "it_accepts_unicode_providing_there_is_no_encoding_declaration"
53   ];
55   pytestFlagsArray = [
56     "-W"
57     "ignore::DeprecationWarning"
58   ];
60   meta = with lib; {
61     description = "Create and update Microsoft Word .docx files";
62     homepage = "https://python-docx.readthedocs.io/";
63     changelog = "https://github.com/python-openxml/python-docx/blob/v${version}/HISTORY.rst";
64     license = licenses.mit;
65     maintainers = with maintainers; [ alexchapman ];
66   };