csvkit: refactor
This commit is contained in:
parent
14d951c46f
commit
5762985302
28
pkgs/development/python-modules/csvkit/default.nix
Normal file
28
pkgs/development/python-modules/csvkit/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
@ -2433,29 +2433,7 @@ in {
|
|||||||
|
|
||||||
csscompressor = callPackage ../development/python-modules/csscompressor.nix {};
|
csscompressor = callPackage ../development/python-modules/csscompressor.nix {};
|
||||||
|
|
||||||
csvkit = buildPythonPackage rec {
|
csvkit = callPackage ../development/python-modules/csvkit { };
|
||||||
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";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
cx_Freeze = buildPythonPackage rec {
|
cx_Freeze = buildPythonPackage rec {
|
||||||
name = "cx_freeze-${version}";
|
name = "cx_freeze-${version}";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user