94427deb9d
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
49 lines
946 B
Nix
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 ];
|
|
};
|
|
}
|