Merge pull request #223644 from fabaff/openpyxl-bump

python310Packages.openpyxl: 3.1.1 -> 3.1.2
This commit is contained in:
Fabian Affolter 2023-05-18 15:58:32 +02:00 committed by GitHub
commit c680c3136d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,40 +1,49 @@
{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, pytest
, jdcal
, et_xmlfile
, fetchFromGitLab
, jdcal
, lxml
, pillow
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "openpyxl";
version = "3.1.1";
disabled = isPy27; # 2.6.4 was final python2 release
version = "3.1.2";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-8G1E4slzeBBovOXs+GCgm82xx/XOH6zV6aqCySyTrnI=";
disabled = pythonOlder "3.7";
src = fetchFromGitLab {
domain = "foss.heptapod.net";
owner = "openpyxl";
repo = "openpyxl";
rev = version;
hash = "sha256-SWRbjA83AOLrfe6on2CSb64pH5EWXkfyYcTqWJNBEP0=";
};
nativeCheckInputs = [ pytest ];
propagatedBuildInputs = [ jdcal et_xmlfile lxml ];
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
'';
nativeCheckInputs = [
pillow
pytestCheckHook
];
# Tests are not included in archive.
# https://bitbucket.org/openpyxl/openpyxl/issues/610
doCheck = false;
pythonImportsCheck = [
"openpyxl"
];
meta = {
description = "A Python library to read/write Excel 2007 xlsx/xlsm files";
meta = with lib; {
description = "Python library to read/write Excel 2010 xlsx/xlsm files";
homepage = "https://openpyxl.readthedocs.org";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ lihop ];
changelog = "https://foss.heptapod.net/openpyxl/openpyxl/-/blob/${version}/doc/changes.rst";
license = licenses.mit;
maintainers = with maintainers; [ lihop ];
};
}