1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/openpyxl/default.nix

38 lines
907 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, pytest
, jdcal
, et_xmlfile
, lxml
}:
buildPythonPackage rec {
pname = "openpyxl";
2018-11-20 10:58:36 +00:00
version = "2.5.10";
src = fetchPypi {
inherit pname version;
2018-11-20 10:58:36 +00:00
sha256 = "41eb21a5620343d715b38081536c4ed3c37249afb72e569fd2af93852ed4ddde";
};
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 ];
};
}