2017-09-05 10:16:41 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
|
|
|
, jdcal
|
|
|
|
, et_xmlfile
|
|
|
|
, lxml
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "openpyxl";
|
2019-02-14 07:37:22 +00:00
|
|
|
version = "2.6.0";
|
2017-09-05 10:16:41 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-02-14 07:37:22 +00:00
|
|
|
sha256 = "70da6b45a5925285b6a3d93570b45f4402eb2d335740163a58eef533b139565c";
|
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";
|
|
|
|
homepage = https://openpyxl.readthedocs.org;
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ lihop sjourdois ];
|
|
|
|
};
|
|
|
|
}
|