Files
nixpkgs/pkgs/development/python-modules/openpyxl/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

59 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
et-xmlfile,
fetchFromGitLab,
lxml,
pandas,
pillow,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "openpyxl";
version = "3.1.5";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitLab {
domain = "foss.heptapod.net";
owner = "openpyxl";
repo = "openpyxl";
rev = "refs/tags/${version}";
hash = "sha256-vp+TIWcHCAWlDaBcmC7w/kV7DZTZpa6463NusaJmqKo=";
};
build-system = [ setuptools ];
dependencies = [ et-xmlfile ];
nativeCheckInputs = [
lxml
pandas
pillow
pytestCheckHook
];
pytestFlags = [
"-Wignore::DeprecationWarning"
];
disabledTests = [
# lxml 6.0
"test_iterparse"
];
pythonImportsCheck = [ "openpyxl" ];
meta = {
description = "Python library to read/write Excel 2010 xlsx/xlsm files";
homepage = "https://openpyxl.readthedocs.org";
changelog = "https://foss.heptapod.net/openpyxl/openpyxl/-/blob/${version}/doc/changes.rst";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ lihop ];
};
}