nixpkgs-suyu/pkgs/development/python-modules/openpyxl/default.nix
2019-01-18 09:37:09 +01:00

38 lines
No EOL
907 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytest
, jdcal
, et_xmlfile
, lxml
}:
buildPythonPackage rec {
pname = "openpyxl";
version = "2.5.12";
src = fetchPypi {
inherit pname version;
sha256 = "7bcf019a0be528673a8aec1e60b5c863342c3231962dbf7922fd4da42a49a91a";
};
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 ];
};
}