nixpkgs/pkgs/development/python-modules/openpyxl/default.nix
Fabian Affolter 8424513433 python310Packages.openpyxl: enable tests
- add pythonImportsCheck
- update description
2023-03-30 12:51:06 +02:00

50 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 ];
};
}