summary refs log tree commit diff
path: root/pkgs/development/python-modules/csvkit/default.nix
blob: bfabf4376e7ac3d2af80ee507fc07752665f6ec6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ stdenv, fetchPypi, buildPythonPackage,
  dateutil, dbf, xlrd, sqlalchemy, openpyxl,
 agate-excel, agate-dbf, agate-sql, isPy3k }:

buildPythonPackage rec {
    name = "${pname}-${version}";
    pname = "csvkit";
    version = "1.0.2";

    src = fetchPypi {
      inherit pname version;
      sha256 = "05vfsba9nwh4islszgs18rq8sjkpzqni0cdwvvkw7pi0r63pz2as";
    };

    propagatedBuildInputs = [ dateutil dbf xlrd sqlalchemy openpyxl
      agate-excel agate-dbf agate-sql ];

    doCheck = !isPy3k;
    # (only) python 3 we had 9 failures and 57 errors out of a much larger
    # number of tests.

    meta = with stdenv.lib; {
      description = "A library of utilities for working with CSV, the king of tabular file formats";
      maintainers = with maintainers; [ vrthra ];
      license = with licenses; [ mit ];
      homepage = https://github.com/wireservice/csvkit;
    };
}