nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 python3,
4 fetchurl,
5}:
6
7python3.pkgs.buildPythonApplication rec {
8 pname = "csv2odf";
9 version = "2.09";
10 pyproject = true;
11
12 src = fetchurl {
13 url = "mirror://sourceforge/project/${pname}/${pname}-${version}/${pname}-${version}.tar.gz";
14 sha256 = "09l0yfay89grjdzap2h11f0hcyn49np5zizg2yyp2aqgjs8ki57p";
15 };
16
17 build-system = with python3.pkgs; [
18 setuptools
19 ];
20
21 meta = {
22 homepage = "https://sourceforge.net/p/csv2odf/wiki/Main_Page/";
23 description = "Convert csv files to OpenDocument Format";
24 mainProgram = "csv2odf";
25 longDescription = ''
26 csv2odf is a command line tool that can convert a comma separated value
27 (csv) file to an odf, ods, html, xlsx, or docx document that can be viewed in
28 LibreOffice and other office productivity programs. csv2odf is useful for
29 creating reports from databases and other data sources that produce csv files.
30 csv2odf can be combined with cron and shell scripts to automatically generate
31 business reports.
32
33 The output format (fonts, number formatting, etc.) is controlled by a
34 template file that you can design in your office application of choice.
35 '';
36 license = lib.licenses.gpl3;
37 };
38}