@@ -1,4 +1,4 @@
1−{ lib, python3, glibcLocales }:
1+{ lib, fetchpatch, python3 }:
22
33python3.pkgs.buildPythonApplication rec {
44 pname = "csvkit";
@@ -9,36 +9,26 @@ python3.pkgs.buildPythonApplication rec {
99 sha256 = "1ffmbzk4rxnl1yhqfl58v7kvl5m9cbvjm8v7xp4mvr00sgs91lvv";
1010 };
1111
12+ patches = [
13+ # Fixes a failing dbf related test. Won't be needed on 1.0.6 or later.
14+ (fetchpatch{
15+ url = "https://github.com/wireservice/csvkit/commit/5f22e664121b13d9ff005a9206873a8f97431dca.patch";
16+ sha256 = "1kg00z65x7l6dnm5nfsr5krs8m7mv23hhb1inkaqf5m5fpkpnvv7";
17+ })
18+ ];
19+
1220 propagatedBuildInputs = with python3.pkgs; [
1321 agate
1422 agate-excel
15− # dbf test fail with agate-dbf-0.2.2
16− (agate-dbf.overridePythonAttrs(old: rec {
17− version = "0.2.1";
18− src = python3.pkgs.fetchPypi {
19− inherit (old) pname;
20− inherit version;
21− sha256 = "0brprva3vjypb5r9lk6zy10jazp681rxsqxzhz2lr869ir4krj80";
22− };}))
23− # sql test fail with agate-sql-0.5.4
24− (agate-sql.overridePythonAttrs(old: rec {
25− version = "0.5.3";
26− src = python3.pkgs.fetchPypi {
27− inherit (old) pname;
28− inherit version;
29− sha256 = "1d6rbahmdix7xi7ma2v86fpk5yi32q5dba5vama35w5mmn2pnyw7";
30− };}))
23+ agate-dbf
24+ agate-sql
3125 six
3226 ];
3327
3428 checkInputs = with python3.pkgs; [
35− glibcLocales nose
29+ nose pytestCheckHook
3630 ];
3731
38− checkPhase = ''
39− LC_ALL="en_US.UTF-8" nosetests -e test_csvsql
40− '';
41−
4232 meta = with lib; {
4333 description = "A suite of command-line tools for converting to and working with CSV";
4434 maintainers = with maintainers; [ vrthra ];