3
0
Fork 0
forked from mirrors/nixpkgs

csvkit: refactor

This commit is contained in:
Rahul Gopinath 2017-05-02 21:18:57 -07:00
parent 14d951c46f
commit 5762985302
2 changed files with 29 additions and 23 deletions

View file

@ -0,0 +1,28 @@
{ stdenv, fetchPypi, buildPythonPackage,
dateutil, dbf, xlrd, sqlalchemy, openpyxl,
agate-excel, agate-dbf, agate-sql, isPy3k }:
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "csvkit";
version = "1.0.2";
src = fetchPypi {
inherit pname version;
sha256 = "05vfsba9nwh4islszgs18rq8sjkpzqni0cdwvvkw7pi0r63pz2as";
};
propagatedBuildInputs = [ dateutil dbf xlrd sqlalchemy openpyxl
agate-excel agate-dbf agate-sql ];
doCheck = !isPy3k;
# (only) python 3 we had 9 failures and 57 errors out of a much larger
# number of tests.
meta = with stdenv.lib; {
description = "A library of utilities for working with CSV, the king of tabular file formats";
maintainers = with maintainers; [ vrthra ];
license = with licenses; [ mit ];
homepage = https://github.com/wireservice/csvkit;
};
}

View file

@ -2433,29 +2433,7 @@ in {
csscompressor = callPackage ../development/python-modules/csscompressor.nix {};
csvkit = buildPythonPackage rec {
name = "csvkit-${version}";
version = "1.0.2";
src = pkgs.fetchurl {
url = "mirror://pypi/c/csvkit/${name}.tar.gz";
sha256 = "05vfsba9nwh4islszgs18rq8sjkpzqni0cdwvvkw7pi0r63pz2as";
};
propagatedBuildInputs = with self; [ dateutil dbf xlrd sqlalchemy openpyxl
agate-excel agate-dbf agate-sql ];
doCheck = false;
# (only) python 3 we had 9 failures and 57 errors out of a much larger
# number of tests.
meta = {
description = "A library of utilities for working with CSV, the king of tabular file formats";
maintainers = with maintainers; [ vrthra ];
license = licenses.mit;
homepage = "https://github.com/wireservice/csvkit";
};
};
csvkit = callPackage ../development/python-modules/csvkit { };
cx_Freeze = buildPythonPackage rec {
name = "cx_freeze-${version}";