pythonPackages.csvkit: fix build
This commit is contained in:
parent
ad17db3562
commit
c0466ef834
@ -1,9 +1,10 @@
|
|||||||
{ stdenv, fetchPypi, buildPythonPackage,
|
{ lib, fetchPypi, buildPythonPackage, isPy3k
|
||||||
dateutil, dbf, xlrd, sqlalchemy, openpyxl,
|
, agate, agate-excel, agate-dbf, agate-sql, six
|
||||||
agate-excel, agate-dbf, agate-sql, isPy3k }:
|
, argparse, ordereddict, simplejson
|
||||||
|
, glibcLocales, nose, mock, unittest2
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
name = "${pname}-${version}";
|
|
||||||
pname = "csvkit";
|
pname = "csvkit";
|
||||||
version = "1.0.2";
|
version = "1.0.2";
|
||||||
|
|
||||||
@ -12,14 +13,23 @@ buildPythonPackage rec {
|
|||||||
sha256 = "05vfsba9nwh4islszgs18rq8sjkpzqni0cdwvvkw7pi0r63pz2as";
|
sha256 = "05vfsba9nwh4islszgs18rq8sjkpzqni0cdwvvkw7pi0r63pz2as";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ dateutil dbf xlrd sqlalchemy openpyxl
|
propagatedBuildInputs = [
|
||||||
agate-excel agate-dbf agate-sql ];
|
agate agate-excel agate-dbf agate-sql six
|
||||||
|
] ++ lib.optionals (!isPy3k) [
|
||||||
|
argparse ordereddict simplejson
|
||||||
|
];
|
||||||
|
|
||||||
doCheck = !isPy3k;
|
checkInputs = [
|
||||||
# (only) python 3 we had 9 failures and 57 errors out of a much larger
|
glibcLocales nose
|
||||||
# number of tests.
|
] ++ lib.optionals (!isPy3k) [
|
||||||
|
mock unittest2
|
||||||
|
];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
checkPhase = ''
|
||||||
|
LC_ALL="en_US.UTF-8" nosetests -e test_csvsql
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
description = "A library of utilities for working with CSV, the king of tabular file formats";
|
description = "A library of utilities for working with CSV, the king of tabular file formats";
|
||||||
maintainers = with maintainers; [ vrthra ];
|
maintainers = with maintainers; [ vrthra ];
|
||||||
license = with licenses; [ mit ];
|
license = with licenses; [ mit ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user