wlroots: 0.18.1 -> 0.18.2 (#364488)
[NixPkgs.git] / pkgs / development / python-modules / python-docx / default.nix
blob28c4d4c3c115d2d7cb998250814d13b20ffa8cc1
2   lib,
3   behave,
4   buildPythonPackage,
5   fetchFromGitHub,
6   lxml,
7   mock,
8   pyparsing,
9   pytestCheckHook,
10   pythonOlder,
11   setuptools,
12   typing-extensions,
15 buildPythonPackage rec {
16   pname = "python-docx";
17   version = "1.1.2";
18   pyproject = true;
20   disabled = pythonOlder "3.7";
22   src = fetchFromGitHub {
23     owner = "python-openxml";
24     repo = "python-docx";
25     rev = "refs/tags/v${version}";
26     hash = "sha256-isxMtq5j5J02GcHMzOJdJw+ZokLoxA6fG1xsN21Irbc=";
27   };
29   build-system = [ setuptools ];
31   dependencies = [
32     lxml
33     typing-extensions
34   ];
36   nativeCheckInputs = [
37     behave
38     mock
39     pyparsing
40     pytestCheckHook
41   ];
43   postCheck = ''
44     behave --format progress --stop --tags=-wip
45   '';
47   pythonImportsCheck = [ "docx" ];
49   disabledTests = [
50     # https://github.com/python-openxml/python-docx/issues/1302
51     "it_accepts_unicode_providing_there_is_no_encoding_declaration"
52   ];
54   pytestFlagsArray = [
55     "-W"
56     "ignore::DeprecationWarning"
57   ];
59   meta = with lib; {
60     description = "Create and update Microsoft Word .docx files";
61     homepage = "https://python-docx.readthedocs.io/";
62     changelog = "https://github.com/python-openxml/python-docx/blob/v${version}/HISTORY.rst";
63     license = licenses.mit;
64     maintainers = with maintainers; [ alexchapman ];
65   };