2017-09-05 10:16:41 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2019-10-25 09:39:23 +01:00
|
|
|
, isPy27
|
2017-09-05 10:16:41 +01:00
|
|
|
, pytest
|
|
|
|
, jdcal
|
|
|
|
, et_xmlfile
|
|
|
|
, lxml
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "openpyxl";
|
2020-08-29 12:41:50 +01:00
|
|
|
version = "3.0.5";
|
2019-10-25 09:39:23 +01:00
|
|
|
disabled = isPy27; # 2.6.4 was final python2 release
|
2017-09-05 10:16:41 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-29 12:41:50 +01:00
|
|
|
sha256 = "18e11f9a650128a12580a58e3daba14e00a11d9e907c554a17ea016bf1a2c71b";
|
2017-09-05 10:16:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
propagatedBuildInputs = [ jdcal et_xmlfile lxml ];
|
|
|
|
|
2018-11-20 10:58:36 +00:00
|
|
|
postPatch = ''
|
|
|
|
# LICENSE.rst is missing, and setup.cfg currently doesn't contain anything useful anyway
|
|
|
|
# This should likely be removed in the next update
|
|
|
|
rm setup.cfg
|
|
|
|
'';
|
|
|
|
|
2017-09-05 10:16:41 +01:00
|
|
|
# Tests are not included in archive.
|
|
|
|
# https://bitbucket.org/openpyxl/openpyxl/issues/610
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A Python library to read/write Excel 2007 xlsx/xlsm files";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://openpyxl.readthedocs.org";
|
2017-09-05 10:16:41 +01:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ lihop sjourdois ];
|
|
|
|
};
|
2019-10-25 09:39:23 +01:00
|
|
|
}
|