3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/openpyxl/default.nix

41 lines
971 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, pytest
, jdcal
, et_xmlfile
, lxml
}:
buildPythonPackage rec {
pname = "openpyxl";
2019-10-24 07:47:40 +01:00
version = "3.0.0";
disabled = isPy27; # 2.6.4 was final python2 release
src = fetchPypi {
inherit pname version;
2019-10-24 07:47:40 +01:00
sha256 = "340a1ab2069764559b9d58027a43a24db18db0e25deb80f81ecb8ca7ee5253db";
};
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
'';
# 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 ];
};
}