about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorDmitry Kalinkin <dmitry.kalinkin@gmail.com>2019-03-20 07:45:58 -0400
committerRobert Schütz <rschuetz17@gmail.com>2019-03-20 12:45:58 +0100
commit399061d3e429dbabeb96aabbad137702171861dc (patch)
tree35fd8560c60433ff4a6f6bf513707287d3af2e83 /pkgs
parentf0888669451889fbf33ce1a2905e5f6e4a92f1fe (diff)
downloadnixlib-399061d3e429dbabeb96aabbad137702171861dc.tar
nixlib-399061d3e429dbabeb96aabbad137702171861dc.tar.gz
nixlib-399061d3e429dbabeb96aabbad137702171861dc.tar.bz2
nixlib-399061d3e429dbabeb96aabbad137702171861dc.tar.lz
nixlib-399061d3e429dbabeb96aabbad137702171861dc.tar.xz
nixlib-399061d3e429dbabeb96aabbad137702171861dc.tar.zst
nixlib-399061d3e429dbabeb96aabbad137702171861dc.zip
pythonPackages.fastparquet: init at 0.2.1 (#56027)
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/fastparquet/default.nix39
-rw-r--r--pkgs/top-level/python-packages.nix2
2 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/fastparquet/default.nix b/pkgs/development/python-modules/fastparquet/default.nix
new file mode 100644
index 000000000000..a31b5670732a
--- /dev/null
+++ b/pkgs/development/python-modules/fastparquet/default.nix
@@ -0,0 +1,39 @@
+{ lib, buildPythonPackage, isPy3k, fetchPypi, fetchpatch, numba, numpy, pandas,
+pytestrunner, thrift, pytest, python-snappy, lz4 }:
+
+buildPythonPackage rec {
+  pname = "fastparquet";
+  version = "0.2.1";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "183wdmhnhnlsd7908n3d2g4qnb49fcipqfshghwpbdwdzjpa0day";
+  };
+
+  # Fixes for recent pandas version
+  # See https://github.com/dask/fastparquet/pull/396
+  patches = fetchpatch {
+    url = https://github.com/dask/fastparquet/commit/31fb3115598d1ab62a5c8bf7923a27c16f861529.patch;
+    sha256 = "0r1ig4rydmy4j85dgb52qbsx6knxdwn4dn9h032fg3p6xqq0zlpm";
+  };
+
+  postPatch = ''
+    # FIXME: package zstandard
+    # removing the test dependency for now
+    substituteInPlace setup.py --replace "'zstandard'," ""
+  '';
+
+  nativeBuildInputs = [ pytestrunner ];
+  propagatedBuildInputs = [ numba numpy pandas thrift ];
+  checkInputs = [ pytest python-snappy lz4 ];
+
+  # test_data/ missing in PyPI tarball
+  doCheck = false;
+
+  meta = with lib; {
+    description = "A python implementation of the parquet format";
+    homepage = https://github.com/dask/fastparquet;
+    license = with licenses; [ asl20 ];
+    maintainers = with maintainers; [ veprbl ];
+  };
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 770ca8b3d0cb..df0b374689c0 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -388,6 +388,8 @@ in {
 
   face = callPackage ../development/python-modules/face { };
 
+  fastparquet = callPackage ../development/python-modules/fastparquet { };
+
   fastpbkdf2 = callPackage ../development/python-modules/fastpbkdf2 {  };
 
   favicon = callPackage ../development/python-modules/favicon {  };