1{ stdenv, fetchPypi, buildPythonPackage, 2 dateutil, dbf, xlrd, sqlalchemy, openpyxl, 3 agate-excel, agate-dbf, agate-sql, isPy3k }: 4 5buildPythonPackage rec { 6 name = "${pname}-${version}"; 7 pname = "csvkit"; 8 version = "1.0.2"; 9 10 src = fetchPypi { 11 inherit pname version; 12 sha256 = "05vfsba9nwh4islszgs18rq8sjkpzqni0cdwvvkw7pi0r63pz2as"; 13 }; 14 15 propagatedBuildInputs = [ dateutil dbf xlrd sqlalchemy openpyxl 16 agate-excel agate-dbf agate-sql ]; 17 18 doCheck = !isPy3k; 19 # (only) python 3 we had 9 failures and 57 errors out of a much larger 20 # number of tests. 21 22 meta = with stdenv.lib; { 23 description = "A library of utilities for working with CSV, the king of tabular file formats"; 24 maintainers = with maintainers; [ vrthra ]; 25 license = with licenses; [ mit ]; 26 homepage = https://github.com/wireservice/csvkit; 27 }; 28}