3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #25404 from vrthra/csvkit

csvkit: 0.9.1 -> 1.0.2
This commit is contained in:
Frederik Rietdijk 2017-05-05 21:10:17 +02:00 committed by GitHub
commit 9652e3e8f2
11 changed files with 229 additions and 174 deletions

View file

@ -1,18 +1,25 @@
{ stdenv, fetchPypi, buildPythonPackage }:
{ stdenv, fetchPypi, buildPythonPackage, isPy3k }:
buildPythonPackage rec {
pname = "aenum";
version = "1.4.7";
version = "2.0.6";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "1bvn2k53nz99fiwql5fkl0fh7xjw8ama9qzdjp36609mpk05ikl8";
sha256 = "0rlhb5wzlyyz0l44r2jxn3m0nh51ifih97dk2y7zfs1m299gwcv6";
};
doCheck = !isPy3k;
# The following tests fail (only in python3
# test_convert (aenum.test.TestIntEnumConvert)
# test_convert_value_lookup_priority (aenum.test.TestIntEnumConvert)
# test_convert (aenum.test.TestIntEnumConvert)
# test_convert_value_lookup_priority (aenum.test.TestIntEnumConvert)
meta = {
description = "Advanced Enumerations (compatible with Python's stdlib Enum), NamedTuples, and NamedConstants";
maintainer = with stdenv.lib.maintainers; [ vrthra ];
maintainers = with stdenv.lib.maintainers; [ vrthra ];
license = with stdenv.lib.licenses; [ bsd3 ];
homepage = https://bitbucket.org/stoneleaf/aenum;
};

View file

@ -0,0 +1,21 @@
{ stdenv, fetchPypi, buildPythonPackage, agate, dbf, dbfread }:
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "agate-dbf";
version = "0.2.0";
propagatedBuildInputs = [ agate dbf dbfread ];
src = fetchPypi {
inherit pname version;
sha256 = "0pkk6m873xpqj77ja6ylmg8v41abpn4bvsqw6mh2hjyd0snw2rh6";
};
meta = with stdenv.lib; {
description = "Adds read support for dbf files to agate";
homepage = https://github.com/wireservice/agate-dbf;
license = with licenses; [ mit ];
maintainers = with maintainers; [ vrthra ];
};
}

View file

@ -0,0 +1,22 @@
{ stdenv, fetchPypi, buildPythonPackage, agate, openpyxl, xlrd }:
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "agate-excel";
version = "0.2.1";
src = fetchPypi {
inherit pname version;
sha256 = "1d28s01a0a8n8rdrd78w88cqgl3lawzy38h9afwm0iks618i0qn7";
};
propagatedBuildInputs = [ agate openpyxl xlrd ];
meta = with stdenv.lib; {
description = "Adds read support for excel files to agate";
homepage = "https://github.com/wireservice/agate-excel";
license = licenses.mit;
maintainers = with maintainers; [ vrthra ];
};
}

View file

@ -0,0 +1,21 @@
{ stdenv, fetchPypi, buildPythonPackage, agate, sqlalchemy }:
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "agate-sql";
version = "0.5.2";
src = fetchPypi {
inherit pname version;
sha256 = "0qlfwql6fnbs0r1rj7nxv4n5scad53b8dlh4qv6gyklvdk3wwn14";
};
propagatedBuildInputs = [ agate sqlalchemy ];
meta = with stdenv.lib; {
description = "Adds SQL read/write support to agate.";
homepage = https://github.com/wireservice/agate-sql;
license = with licenses; [ mit ];
maintainers = with maintainers; [ vrthra ];
};
}

View file

@ -0,0 +1,27 @@
{ stdenv, fetchPypi, buildPythonPackage, isPy3k,
discid, six, parsedatetime, isodate, Babel, pytimeparse,
leather, python-slugify }:
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "agate";
version = "1.6.0";
src = fetchPypi {
inherit pname version;
sha256 = "02pb5jjvzjqfpsa7q12afbk9nqj06xdpw1s7qa6a1bnalikfniqm";
};
propagatedBuildInputs = [ discid six parsedatetime
isodate Babel pytimeparse leather python-slugify ];
doCheck = !isPy3k;
# (only) on python3 unittest loader (loadTestsFromModule) fails
meta = with stdenv.lib; {
description = "A Python data analysis library that is optimized for humans instead of machines";
homepage = https://github.com/wireservice/agate;
license = with licenses; [ mit ];
maintainers = with maintainers; [ vrthra ];
};
}

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

@ -0,0 +1,25 @@
{ stdenv, fetchPypi, buildPythonPackage, aenum, isPy3k }:
buildPythonPackage rec {
pname = "dbf";
version = "0.96.8";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "1z8n7s4cka6x9ybh4qpfhj51v2qrk38h2f06npizzhm0hmn6r3v1";
};
propagatedBuildInputs = [ aenum ];
doCheck = !isPy3k;
# tests are not yet ported.
# https://groups.google.com/forum/#!topic/python-dbase/96rx2xmCG4w
meta = with stdenv.lib; {
description = "Pure python package for reading/writing dBase, FoxPro, and Visual FoxPro .dbf files";
homepage = "https://pypi.python.org/pypi/dbf";
license = licenses.bsd2;
maintainers = with maintainers; [ vrthra ];
};
}

View file

@ -0,0 +1,19 @@
{ stdenv, fetchPypi, buildPythonPackage }:
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "dbfread";
version = "2.0.5";
src = fetchPypi {
inherit pname version;
sha256 = "0r5axq9ax0czyapm7b69krcv22r1nyb4vci7c5x8mx8pq1axim93";
};
meta = with stdenv.lib; {
description = "Read DBF Files with Python";
homepage = http://dbfread.readthedocs.org/;
license = with licenses; [ mit ];
maintainers = with maintainers; [ vrthra ];
};
}

View file

@ -0,0 +1,24 @@
{ stdenv, fetchPypi, buildPythonPackage, unidecode, regex, isPy3k }:
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "python-slugify";
version = "1.2.4";
src = fetchPypi {
inherit pname version;
sha256 = "097qllxys22kghcv2a5jcc1zdlr9zzqayvk6ywavsv8wgbgqb8sp";
};
doCheck = !isPy3k;
# (only) on python3 unittest loader (loadTestsFromModule) fails
propagatedBuildInputs = [ unidecode regex ];
meta = with stdenv.lib; {
homepage = https://github.com/un33k/python-slugify;
description = "A Python Slugify application that handles Unicode";
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ vrthra ];
};
}

View file

@ -0,0 +1,21 @@
{ stdenv, fetchPypi, buildPythonPackage, nose }:
buildPythonPackage rec {
pname = "pytimeparse";
version = "1.1.6";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "0imbb68i5n5fm704gv47if1blpxd4f8g16qmp5ar07cavgh2mibl";
};
propagatedBuildInputs = [ nose ];
meta = with stdenv.lib; {
description = "A small Python library to parse various kinds of time expressions";
homepage = "https://github.com/wroberts/pytimeparse";
license = licenses.mit;
maintainers = with maintainers; [ vrthra ];
};
}

View file

@ -114,64 +114,15 @@ in {
aenum = callPackage ../development/python-modules/aenum { };
agate = buildPythonPackage rec {
name = "agate-1.2.2";
disabled = isPy3k;
agate = callPackage ../development/python-modules/agate { };
meta = {
description = "A Python data analysis library that is optimized for humans instead of machines";
homepage = "https://github.com/wireservice/agate";
license = licenses.mit;
maintainers = with maintainers; [ vrthra ];
};
propagatedBuildInputs = with self; [ discid six parsedatetime isodate Babel pytimeparse ];
src = pkgs.fetchurl {
url = "mirror://pypi/a/agate/${name}.tar.gz";
sha256 = "0h2w30a0zhylivz86d823a05hvg8w8p61lmm855z1wwkgml9l9d4";
};
};
agate-dbf = callPackage ../development/python-modules/agate-dbf { };
phonenumbers = callPackage ../development/python-modules/phonenumbers { };
agate-dbf = buildPythonPackage rec {
name = "agate-dbf-0.1.0";
disabled = isPy3k;
agate-excel = callPackage ../development/python-modules/agate-excel { };
meta = {
description = "Adds read support for dbf files to agate";
homepage = "https://github.com/wireservice/agate-dbf";
license = licenses.mit;
maintainers = with maintainers; [ vrthra ];
};
propagatedBuildInputs = with self; [ agate dbf dbfread ];
src = pkgs.fetchurl {
url = "mirror://pypi/a/agate-dbf/${name}.tar.gz";
sha256 = "0xzz834lh4xbl342c6wmxqy7ynmsrjp42bsjahfcxhsgq33vzngz";
};
};
agate-excel = buildPythonPackage rec {
name = "agate-excel-0.1.0";
disabled = isPy3k;
meta = {
description = "Adds read support for excel files to agate";
homepage = "https://github.com/wireservice/agate-excel";
license = licenses.mit;
maintainers = with maintainers; [ vrthra ];
};
propagatedBuildInputs = with self; [ agate openpyxl xlrd ];
src = pkgs.fetchurl {
url = "mirror://pypi/a/agate-excel/${name}.tar.gz";
sha256 = "08zvj3pwqw8zhd58iyymiwblrk92y4gl6yyrb2svb0k8za7v0hak";
};
};
agate-sql = callPackage ../development/python-modules/agate-sql { };
ansicolor = buildPythonPackage rec {
name = "ansicolor-${version}";
@ -206,40 +157,9 @@ in {
bugseverywhere = callPackage ../applications/version-management/bugseverywhere {};
dbf = buildPythonPackage rec {
name = "dbf-0.94.003";
disabled = isPy3k;
dbf = callPackage ../development/python-modules/dbf { };
meta = {
description = "Pure python package for reading/writing dBase, FoxPro, and Visual FoxPro .dbf files";
homepage = "https://pypi.python.org/pypi/dbf";
license = licenses.bsd2;
maintainers = with maintainers; [ vrthra ];
};
src = pkgs.fetchurl {
url = "mirror://pypi/d/dbf/${name}.tar.gz";
sha256 = "0i2454hwg67079jb56x663wqmmwr55pcr6c76q2415185y6nhny9";
};
};
dbfread = buildPythonPackage rec {
name = "dbfread-2.0.5";
disabled = isPy3k;
meta = {
description = "Read DBF Files with Python";
homepage = "http://dbfread.readthedocs.org/";
license = licenses.mit;
maintainers = with maintainers; [ vrthra ];
};
src = pkgs.fetchurl {
url = "mirror://pypi/d/dbfread/${name}.tar.gz";
sha256 = "0r5axq9ax0czyapm7b69krcv22r1nyb4vci7c5x8mx8pq1axim93";
};
};
dbfread = callPackage ../development/python-modules/dbfread { };
dkimpy = callPackage ../development/python-modules/dkimpy { };
@ -398,25 +318,7 @@ in {
python-stdnum = callPackage ../development/python-modules/python-stdnum { };
pytimeparse = buildPythonPackage rec {
pname = "pytimeparse";
version = "1.1.6";
name = "${pname}-${version}";
meta = {
description = "A small Python library to parse various kinds of time expressions";
homepage = "https://github.com/wroberts/pytimeparse";
license = licenses.mit;
maintainers = with maintainers; [ vrthra ];
};
propagatedBuildInputs = with self; [ nose ];
src = fetchPypi {
inherit pname version;
sha256 = "0imbb68i5n5fm704gv47if1blpxd4f8g16qmp5ar07cavgh2mibl";
};
};
pytimeparse = callPackage ../development/python-modules/pytimeparse { };
PyWebDAV = callPackage ../development/python-modules/pywebdav { };
@ -1586,6 +1488,8 @@ in {
};
}));
python-slugify = callPackage ../development/python-modules/python-slugify { };
awesome-slugify = buildPythonPackage rec {
name = "awesome-slugify-${version}";
version = "1.6.5";
@ -2531,25 +2435,7 @@ in {
csscompressor = callPackage ../development/python-modules/csscompressor.nix {};
csvkit = buildPythonPackage rec {
name = "csvkit-${version}";
version = "0.9.1";
disabled = isPy3k;
src = pkgs.fetchurl {
url = "mirror://pypi/c/csvkit/${name}.tar.gz";
sha256 = "0fprr4wgp0bq8kl5qims88np11af7ahr5bxkrhfwpdgcgdjbiy4j";
};
propagatedBuildInputs = with self; [ dateutil_2_2 dbf xlrd sqlalchemy openpyxl_2_2_0_b1 ];
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}";
@ -6018,27 +5904,6 @@ in {
dateutil = callPackage ../development/python-modules/dateutil { };
# csvkit 0.9.1 needs dateutil==2.2
dateutil_2_2 = buildPythonPackage (rec {
name = "dateutil-2.2";
disabled = isPy3k;
propagatedBuildInputs = with self; [ self.six ];
buildInputs = [ pkgs.glibcLocales ];
src = pkgs.fetchurl {
url = "mirror://pypi/p/python-dateutil/python-${name}.tar.gz";
sha256 = "0s74ad6r789810s10dxgvaf48ni6adac2icrdad34zxygqq6bj7f";
};
meta = {
description = "Powerful extensions to the standard datetime module";
homepage = http://pypi.python.org/pypi/python-dateutil;
license = "BSD-style";
};
});
# Buildbot 0.8.7p1 needs dateutil==1.5
dateutil_1_5 = buildPythonPackage (rec {
name = "dateutil-1.5";
@ -16405,31 +16270,6 @@ in {
doCheck = false;
};
openpyxl_2_2_0_b1 = buildPythonPackage rec {
version = "2.2.0-b1";
name = "openpyxl-${version}";
src = pkgs.fetchurl {
url = "mirror://pypi/o/openpyxl/${name}.tar.gz";
sha256 = "0n10pawp2558jrrmppyhkrv7889k3g4mifqj3fp68qbr20ldk51k";
};
buildInputs = with self; [ pytest ];
propagatedBuildInputs = with self; [ jdcal et_xmlfile lxml ];
# Tests are not included in archive.
# https://bitbucket.org/openpyxl/openpyxl/issues/610
doCheck = false;
meta = {
description = "A Python library to read/write Excel 2007 xlsx/xlsm files";
homepage = https://openpyxl.readthedocs.org;
license = licenses.mit;
maintainers = with maintainers; [ lihop sjourdois ];
platforms = platforms.all;
};
};
openpyxl = buildPythonPackage rec {
version = "2.3.5";
name = "openpyxl-${version}";