diff options
author | Orivej Desh <orivej@gmx.fr> | 2019-11-23 07:30:00 +0000 |
---|---|---|
committer | Orivej Desh <orivej@gmx.fr> | 2019-11-23 07:31:22 +0000 |
commit | 0646b9f7c39776a3ec8e4f3f6c60bd6e735d5b88 (patch) | |
tree | 72ab9addc9db29839b7827c1a012a8e282d60364 /pkgs/development/python-modules/openpyxl | |
parent | b339f29a277cd430c7fdd1677bcbb59ca6619945 (diff) | |
download | nixlib-0646b9f7c39776a3ec8e4f3f6c60bd6e735d5b88.tar nixlib-0646b9f7c39776a3ec8e4f3f6c60bd6e735d5b88.tar.gz nixlib-0646b9f7c39776a3ec8e4f3f6c60bd6e735d5b88.tar.bz2 nixlib-0646b9f7c39776a3ec8e4f3f6c60bd6e735d5b88.tar.lz nixlib-0646b9f7c39776a3ec8e4f3f6c60bd6e735d5b88.tar.xz nixlib-0646b9f7c39776a3ec8e4f3f6c60bd6e735d5b88.tar.zst nixlib-0646b9f7c39776a3ec8e4f3f6c60bd6e735d5b88.zip |
python: openpyxl: support Python 2
This fixes pandas for Python 2 since it depends on openpyxl.
Diffstat (limited to 'pkgs/development/python-modules/openpyxl')
-rw-r--r-- | pkgs/development/python-modules/openpyxl/2.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/openpyxl/2.nix b/pkgs/development/python-modules/openpyxl/2.nix new file mode 100644 index 000000000000..d58192c06667 --- /dev/null +++ b/pkgs/development/python-modules/openpyxl/2.nix @@ -0,0 +1,38 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pytest +, jdcal +, et_xmlfile +, lxml +}: + +buildPythonPackage rec { + pname = "openpyxl"; + version = "2.6.4"; + + src = fetchPypi { + inherit pname version; + sha256 = "1d53801678e18d7fe38c116f1ad0c2383a654670c4c8806105b611c92d92f2e3"; + }; + + 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 ]; + }; +} |