1{ lib, fetchPypi, buildPythonPackage, isPy3k 2, agate, agate-excel, agate-dbf, agate-sql, six 3, argparse, ordereddict, simplejson 4, glibcLocales, nose, mock, unittest2 5}: 6 7buildPythonPackage rec { 8 pname = "csvkit"; 9 version = "1.0.3"; 10 11 src = fetchPypi { 12 inherit pname version; 13 sha256 = "a6c859c1321d4697dc41252877249091681297f093e08d9c1e1828a6d52c260c"; 14 }; 15 16 propagatedBuildInputs = [ 17 agate agate-excel agate-dbf agate-sql six 18 ] ++ lib.optionals (!isPy3k) [ 19 argparse ordereddict simplejson 20 ]; 21 22 checkInputs = [ 23 glibcLocales nose 24 ] ++ lib.optionals (!isPy3k) [ 25 mock unittest2 26 ]; 27 28 checkPhase = '' 29 LC_ALL="en_US.UTF-8" nosetests -e test_csvsql 30 ''; 31 32 meta = with lib; { 33 description = "A library of utilities for working with CSV, the king of tabular file formats"; 34 maintainers = with maintainers; [ vrthra ]; 35 license = with licenses; [ mit ]; 36 homepage = https://github.com/wireservice/csvkit; 37 }; 38}