1{ lib
2, buildPythonPackage
3, et-xmlfile
4, fetchFromGitLab
5, jdcal
6, lxml
7, pillow
8, pytestCheckHook
9, pythonOlder
10}:
11
12buildPythonPackage rec {
13 pname = "openpyxl";
14 version = "3.1.2";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchFromGitLab {
20 domain = "foss.heptapod.net";
21 owner = "openpyxl";
22 repo = "openpyxl";
23 rev = version;
24 hash = "sha256-SWRbjA83AOLrfe6on2CSb64pH5EWXkfyYcTqWJNBEP0=";
25 };
26
27 propagatedBuildInputs = [
28 jdcal
29 et-xmlfile
30 lxml
31 ];
32
33 nativeCheckInputs = [
34 pillow
35 pytestCheckHook
36 ];
37
38 pythonImportsCheck = [
39 "openpyxl"
40 ];
41
42 meta = with lib; {
43 description = "Python library to read/write Excel 2010 xlsx/xlsm files";
44 homepage = "https://openpyxl.readthedocs.org";
45 changelog = "https://foss.heptapod.net/openpyxl/openpyxl/-/blob/${version}/doc/changes.rst";
46 license = licenses.mit;
47 maintainers = with maintainers; [ lihop ];
48 };
49}