1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytest
5, jdcal
6, et_xmlfile
7, lxml
8}:
9
10buildPythonPackage rec {
11 pname = "openpyxl";
12 version = "2.6.0";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "70da6b45a5925285b6a3d93570b45f4402eb2d335740163a58eef533b139565c";
17 };
18
19 checkInputs = [ pytest ];
20 propagatedBuildInputs = [ jdcal et_xmlfile lxml ];
21
22 postPatch = ''
23 # LICENSE.rst is missing, and setup.cfg currently doesn't contain anything useful anyway
24 # This should likely be removed in the next update
25 rm setup.cfg
26 '';
27
28 # Tests are not included in archive.
29 # https://bitbucket.org/openpyxl/openpyxl/issues/610
30 doCheck = false;
31
32 meta = {
33 description = "A Python library to read/write Excel 2007 xlsx/xlsm files";
34 homepage = https://openpyxl.readthedocs.org;
35 license = lib.licenses.mit;
36 maintainers = with lib.maintainers; [ lihop sjourdois ];
37 };
38}