2019-03-16 09:02:11 +00:00
|
|
|
{ lib, python3, glibcLocales }:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "csvkit";
|
2019-04-14 12:38:44 +00:00
|
|
|
version = "1.0.4";
|
2019-03-16 09:02:11 +00:00
|
|
|
|
|
|
|
src = python3.pkgs.fetchPypi {
|
|
|
|
inherit pname version;
|
2019-04-14 12:38:44 +00:00
|
|
|
sha256 = "1830lb95rh1iyi3drlwxzb6y3pqkii0qiyzd40c1kvhvaf1s6lqk";
|
2019-03-16 09:02:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
2019-09-13 13:29:32 +00:00
|
|
|
agate
|
|
|
|
agate-excel
|
2020-09-09 16:55:52 +00:00
|
|
|
# dbf test fail with agate-dbf-0.2.2
|
|
|
|
(agate-dbf.overridePythonAttrs(old: rec {
|
|
|
|
version = "0.2.1";
|
|
|
|
src = python3.pkgs.fetchPypi {
|
|
|
|
inherit (old) pname;
|
|
|
|
inherit version;
|
|
|
|
sha256 = "0brprva3vjypb5r9lk6zy10jazp681rxsqxzhz2lr869ir4krj80";
|
|
|
|
};}))
|
2019-09-13 13:29:32 +00:00
|
|
|
# sql test fail with agate-sql-0.5.4
|
|
|
|
(agate-sql.overridePythonAttrs(old: rec {
|
|
|
|
version = "0.5.3";
|
|
|
|
src = python3.pkgs.fetchPypi {
|
|
|
|
inherit (old) pname;
|
|
|
|
inherit version;
|
|
|
|
sha256 = "1d6rbahmdix7xi7ma2v86fpk5yi32q5dba5vama35w5mmn2pnyw7";
|
|
|
|
};}))
|
|
|
|
six
|
2019-03-16 09:02:11 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = with python3.pkgs; [
|
|
|
|
glibcLocales nose
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
LC_ALL="en_US.UTF-8" nosetests -e test_csvsql
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A suite of command-line tools for converting to and working with CSV";
|
|
|
|
maintainers = with maintainers; [ vrthra ];
|
|
|
|
license = licenses.mit;
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/wireservice/csvkit";
|
2019-03-16 09:02:11 +00:00
|
|
|
};
|
|
|
|
}
|