depot/third_party/nixpkgs/pkgs/development/python-modules/openpyxl/default.nix
Default email b5f92a349c Project import generated by Copybara.
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
2023-10-19 15:55:26 +02:00

49 lines
946 B
Nix

{ lib
, buildPythonPackage
, et-xmlfile
, fetchFromGitLab
, jdcal
, lxml
, pillow
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "openpyxl";
version = "3.1.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitLab {
domain = "foss.heptapod.net";
owner = "openpyxl";
repo = "openpyxl";
rev = version;
hash = "sha256-SWRbjA83AOLrfe6on2CSb64pH5EWXkfyYcTqWJNBEP0=";
};
propagatedBuildInputs = [
jdcal
et-xmlfile
lxml
];
nativeCheckInputs = [
pillow
pytestCheckHook
];
pythonImportsCheck = [
"openpyxl"
];
meta = with lib; {
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 = licenses.mit;
maintainers = with maintainers; [ lihop ];
};
}