587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
43 lines
856 B
Nix
43 lines
856 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "xlsxwriter";
|
|
version = "3.2.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jmcnamara";
|
|
repo = "XlsxWriter";
|
|
rev = "RELEASE_${version}";
|
|
hash = "sha256-HLSIKoGBSzU7N/lskVeVbfdOezTloMrwAahJbcnqJrw=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"xlsxwriter"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Module for creating Excel XLSX files";
|
|
homepage = "https://xlsxwriter.readthedocs.io/";
|
|
changelog = "https://xlsxwriter.readthedocs.io/changes.html";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ jluttine ];
|
|
mainProgram = "vba_extract.py";
|
|
};
|
|
}
|