1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, pythonOlder 6}: 7 8buildPythonPackage rec { 9 pname = "xlsxwriter"; 10 version = "3.0.3"; 11 format = "setuptools"; 12 13 disabled = pythonOlder "3.7"; 14 15 src = fetchFromGitHub { 16 owner = "jmcnamara"; 17 repo = "XlsxWriter"; 18 rev = "RELEASE_${version}"; 19 hash = "sha256-9fIxNkOdM+Bz1F9AWq02H3LLQnefxGSAtp9kM2OtJ9M="; 20 }; 21 22 checkInputs = [ 23 pytestCheckHook 24 ]; 25 26 pythonImportsCheck = [ 27 "xlsxwriter" 28 ]; 29 30 meta = with lib; { 31 description = "Module for creating Excel XLSX files"; 32 homepage = "https://xlsxwriter.readthedocs.io/"; 33 license = licenses.bsd2; 34 maintainers = with maintainers; [ jluttine ]; 35 }; 36}