0eaa97ffad
GitOrigin-RevId: c59ea8b8a0e7f927e7291c14ea6cd1bd3a16ff38
40 lines
973 B
Nix
40 lines
973 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, isPy27
|
|
, pytest
|
|
, jdcal
|
|
, et_xmlfile
|
|
, lxml
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "openpyxl";
|
|
version = "3.0.4";
|
|
disabled = isPy27; # 2.6.4 was final python2 release
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "d88dd1480668019684c66cfff3e52a5de4ed41e9df5dd52e008cbf27af0dbf87";
|
|
};
|
|
|
|
checkInputs = [ pytest ];
|
|
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;
|
|
maintainers = with lib.maintainers; [ lihop sjourdois ];
|
|
};
|
|
}
|