2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy27
|
|
|
|
, pytest
|
|
|
|
, jdcal
|
|
|
|
, et_xmlfile
|
|
|
|
, lxml
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "openpyxl";
|
2023-03-15 16:39:30 +00:00
|
|
|
version = "3.1.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
disabled = isPy27; # 2.6.4 was final python2 release
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-8G1E4slzeBBovOXs+GCgm82xx/XOH6zV6aqCySyTrnI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytest ];
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ jdcal et_xmlfile lxml ];
|
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
|
|
|
# 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";
|
|
|
|
homepage = "https://openpyxl.readthedocs.org";
|
|
|
|
license = lib.licenses.mit;
|
2022-07-14 12:49:19 +00:00
|
|
|
maintainers = with lib.maintainers; [ lihop ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|