nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 setuptools,
7}:
8
9buildPythonPackage rec {
10 pname = "xlsxwriter";
11 version = "3.2.9";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "jmcnamara";
16 repo = "XlsxWriter";
17 tag = "RELEASE_${version}";
18 hash = "sha256-nr7Qw24BzQo/qEpyM9687mUaebzzHv1FAPmsBVdMekg=";
19 };
20
21 build-system = [ setuptools ];
22
23 nativeCheckInputs = [ pytestCheckHook ];
24
25 pythonImportsCheck = [ "xlsxwriter" ];
26
27 meta = {
28 description = "Module for creating Excel XLSX files";
29 homepage = "https://xlsxwriter.readthedocs.io/";
30 changelog = "https://xlsxwriter.readthedocs.io/changes.html";
31 license = lib.licenses.bsd2;
32 maintainers = with lib.maintainers; [ jluttine ];
33 mainProgram = "vba_extract.py";
34 };
35}