2017-09-05 10:16:41 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
|
|
|
, jdcal
|
|
|
|
, et_xmlfile
|
|
|
|
, lxml
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "openpyxl";
|
2017-10-25 19:04:35 +01:00
|
|
|
version = "2.4.9";
|
2017-09-05 10:16:41 +01:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-10-25 19:04:35 +01:00
|
|
|
sha256 = "95e007f4d121f4fd73f39a6d74a883c75e9fa9d96de91d43c1641c103c3a9b18";
|
2017-09-05 10:16:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
propagatedBuildInputs = [ jdcal et_xmlfile lxml ];
|
|
|
|
|
|
|
|
# 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 ];
|
|
|
|
};
|
|
|
|
}
|