Unverified Commit c680c313 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #223644 from fabaff/openpyxl-bump

python310Packages.openpyxl: 3.1.1 -> 3.1.2
parents 1e20fdc3 84245134
Loading
Loading
Loading
Loading
+32 −23
Original line number Diff line number Diff line
{ 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";

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-8G1E4slzeBBovOXs+GCgm82xx/XOH6zV6aqCySyTrnI=";
  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 ];
  };
}