about summary refs log tree commit diff
path: root/pkgs/development/python-modules/csvkit
diff options
context:
space:
mode:
authorRahul Gopinath <rahul@gopinath.org>2017-05-02 21:18:57 -0700
committerRahul Gopinath <rahul@gopinath.org>2017-05-03 11:58:29 -0700
commit5762985302e4947529ec09ad185f9403f8f90a44 (patch)
tree0899f434b1d6b30f90dc08406c123a748971b5fe /pkgs/development/python-modules/csvkit
parent14d951c46fc400c3aae80ac28f35213d28804472 (diff)
downloadnixlib-5762985302e4947529ec09ad185f9403f8f90a44.tar
nixlib-5762985302e4947529ec09ad185f9403f8f90a44.tar.gz
nixlib-5762985302e4947529ec09ad185f9403f8f90a44.tar.bz2
nixlib-5762985302e4947529ec09ad185f9403f8f90a44.tar.lz
nixlib-5762985302e4947529ec09ad185f9403f8f90a44.tar.xz
nixlib-5762985302e4947529ec09ad185f9403f8f90a44.tar.zst
nixlib-5762985302e4947529ec09ad185f9403f8f90a44.zip
csvkit: refactor
Diffstat (limited to 'pkgs/development/python-modules/csvkit')
-rw-r--r--pkgs/development/python-modules/csvkit/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/csvkit/default.nix b/pkgs/development/python-modules/csvkit/default.nix
new file mode 100644
index 000000000000..bfabf4376e7a
--- /dev/null
+++ b/pkgs/development/python-modules/csvkit/default.nix
@@ -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;
+    };
+}