mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 19:15:39 +00:00
0646b9f7c3
This fixes pandas for Python 2 since it depends on openpyxl.
39 lines
907 B
Nix
39 lines
907 B
Nix
{ 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 ];
|
|
};
|
|
}
|