1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 pythonOlder, 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "xlsxwriter"; 12 version = "3.2.5"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.8"; 16 17 src = fetchFromGitHub { 18 owner = "jmcnamara"; 19 repo = "XlsxWriter"; 20 rev = "RELEASE_${version}"; 21 hash = "sha256-Z384IYFQzGViJXJQe+zovXn5X+MyOqGv0NKKlktcF4o="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 nativeCheckInputs = [ pytestCheckHook ]; 27 28 pythonImportsCheck = [ "xlsxwriter" ]; 29 30 meta = with lib; { 31 description = "Module for creating Excel XLSX files"; 32 homepage = "https://xlsxwriter.readthedocs.io/"; 33 changelog = "https://xlsxwriter.readthedocs.io/changes.html"; 34 license = licenses.bsd2; 35 maintainers = with maintainers; [ jluttine ]; 36 mainProgram = "vba_extract.py"; 37 }; 38}