2022-04-15 01:41:22 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-04-15 01:41:22 +00:00
|
|
|
pname = "xlsxwriter";
|
2023-10-19 13:55:26 +00:00
|
|
|
version = "3.1.7";
|
2022-04-15 01:41:22 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
src = fetchFromGitHub {
|
2020-04-24 23:36:52 +00:00
|
|
|
owner = "jmcnamara";
|
2022-04-15 01:41:22 +00:00
|
|
|
repo = "XlsxWriter";
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = "RELEASE_${version}";
|
2023-10-19 13:55:26 +00:00
|
|
|
hash = "sha256-ZOKS9sTZvlopfIYOEhOk/rq4qtcMrNQ4Bwb8lDtKfxs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-04-15 01:41:22 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"xlsxwriter"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Module for creating Excel XLSX files";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://xlsxwriter.readthedocs.io/";
|
2022-04-15 01:41:22 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ jluttine ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|