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